2022 m. gegužės 26 d., ketvirtadienis

Odoo commands

Create new DB and init with demo data:

$ createdb testdb && odoo-bin -d testdb


Remove database:

$ dropdb dbname 

$ rm -rf ~/.local/share/odoo/filestore/dbname


Create database bacup and restore

$ pg_dump -Fc -f dbname.dump dbname


Odoo template addon:

$ ~/odoo-dev/odoo/odoo-bin scaffold my_module