Skip to content
Snippets Groups Projects
README.rst 5.28 KiB

odoo scripts

start

This script can be used to start odoo.

It need to be run on a machine with all the odoo requirements installed, either system-wide or in a virtual environment (which need to be activated).

Its arguments are forwarded to the Odoo executable (odoo-bin / openerp-server).

It expect the configuration file (setup.cfg) to have the following keys:

  • odoo_type: type of odoo (bzr, odoo7, odoo8 or odoo10) [default to odoo8]
  • modules: list of directories and files to include (also used by another script)

do_tests.py

This scripts launches the tests, but with more options than do_tests. It uses docker by default, similar to docker_dev_start.py.

do_tests

This script create a database, install modules and run the tests on those modules and print the result.

It need to be run on a machine with all the odoo requirements installed, either system-wide or in a virtual environment (which need to be activated). A postgresql server is also needed.

It takes two optional arguments, the host of the postgresql server, and the user for this base (which need database creation rights). If a user is provided, you will need to have a .pgpass with the password if it is not the one in conf/dev/odoo.conf.

The script call run_tests.

It expect the configuration file (setup.cfg) to have the following keys:

  • module_list: list (separated by white space) of odoo modules to install on the database (default to empty list)
  • unaccent: boolean to indicate if unaccent is to be installed on the database (default to True)

run_tests

This script run the tests on a database.

It need to be run on a machine with all the odoo requirements installed, either system-wide or in a virtual environment (which need to be activated). A postgresql server is also needed.

The name of the database is the same as do_tests or can be provided.

The script call start.

It expect the configuration file (setup.cfg) to have the following keys:

  • module_list_tests: list (separated by white space) of odoo modules to run tests for on the database (default to empty list)
  • odoo_type: type of odoo (bzr, odoo7, odoo8 or odoo10) [default to odoo8]

conf2reST.py

This script is used to produce a reST file from setup.cfg, the Dockerfile and the .hgconf/nest.yaml file.