Frequently used command
Brief list of frequently used odoo-helper commands
Odoo server management
odoo-helper start- start odoo serverodoo-helper restart- restart odoo serverodoo-helper stop- stop odoo-helper serverodoo-helper log- see odoo server logsodoo-helper ps- display odoo server processes for current projectodoo-helper browse- open running odoo installation in browser
Odoo addons management
odoo-helper addons list <path>- list odoo addons in specified directoryodoo-helper addons update-list- update list of available addons in all databases available for this serverodoo-helper addons install <addon1> [addonn]- install specified odoo addons for all databases available for this serverodoo-helper addons update <addon1> [addonn]- update specified odoo addons for all databases available for this serverodoo-helper addons uninstall <addon1> [addonn]- uninstall specified odoo addons for all databases available for this serverodoo-helper addons update --dir <path>- find all installable addons in specified directory and update themodoo-helper addons install --dir <path>- find all installable addons in specified directory and install them
Postgres related
odoo-helper postgres psql [-d database]- connect to db via psql (same credentials as used by odoo server)odoo-helper psql [-d database]- shortcut forodoo-helper postgres psqlcommandsudo odoo-helper postgres user-create <user name> <password>- create postgres user for odooodoo-helper postgres stat-activity- list running postgres queriesodoo-helper postgres stat-connections- show postgres connections statistics
Tests
odoo-helper test -m <module>- test single moduleodoo-helper test --dir .- test all installable addons in current directoryodoo-helper test --coverage-html -m <module>- test single module and create html coverage report in current dirodoo-helper test --coverage-html --dir .- test all installable addons in current directory and create html coverage report in current dirodoo-helper test -m <module> --recreate-db- test single module, but recreate test database firstodoo-helper test -m <module> --create-test-db- test single module on just created clean database. database dropt after tests
Linters
odoo-helper lint pylint .- run pylint with pylint_odoo for all addons in current directoryodoo-helper lint flake8 .- run flake8 for all addons in current directoryodoo-helper lint style .- run stylelint for all addons in current directoriesodoo-helper pylint- alias forodoo-helper lint pylintodoo-helper flake8- alias forodoo-helper lint flake8odoo-helper style- alias for odoo-helper lint style`
Fetch addons
odoo-helper link .- create symlinks for all addons in current directory incustom_addonsfolder to make them visible for odooodoo-helper fetch --oca web- fetch all addons from OCA repository webodoo-helper fetch --github <username/repository>- fetch all addons from spcified github repositoryodoo-helper fetch --repo <repository url> --branch 11.0- fetch all addons from specified git repository
Database management
odoo-helper db list- list all databases available for current odoo instanceodoo-helper db create my_db- create databaseodoo-helper db backup my_db zip- backup my_db as ZIP archive (with filestore)odoo-helper db backup my_db sql- backup my_db as SQL dump only (without filestore)odoo-helper db drop my_db- drop database
Translation management
odoo-helper tr regenerate --lang uk_UA --file uk <addon1> [addon2]...- regenerate translations for specified language for specified addonsodoo-helper tr regenerate --lang uk_UA --file uk --dir <path>- regenerate translations for specified language for all installable addon in specified pathodoo-helper tr rate --lang uk_UA <addon1> [addon2]...- print translation rate for specified addonsodoo-helper tr rate --lang uk_UA --dir <path>- print translation rate for all installable addons in specified directory
Other
odoo-helper pip- run pip inside current project's virtual environment virtualenv.odoo-helper npm- run npm inside current project's virtual environment nodeenvodoo-helper exec my-command- run command inside project's virtual env