366 B
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()