Files
Wiki/Odoo Shell.md
2020-11-12 12:06:30 +01:00

366 B

Odoo Shell

Commands

Log into Docker Container.
docker exec -it odoo01 bin/bash

Start Odoo Shell.

DATABASE=odoo14
odoo shell -d $DATABASE --db_host $HOST -r $USER -w $PASSWORD

Clear assets.

domain = [('res_model', '=', 'ir.ui.view'), ('name', 'like', 'assets_')]
env['ir.attachment'].search(domain).unlink()
env.cr.commit()