The development of complex modules requires various configuration options, which leads to updating the configuration file whenever you want to try any configuration option. Updating the configuration frequently can be a headache, and to avoid this, an alternative way is to pass all configuration options from the command line, as follows:
- Activate virtualenv manually:
$ source env/bin/activate
- Go to the Odoo source directory:
$ cd src/odoo
- Run the server:
./odoo-bin --addons-path=addons,../../local -d test-12 -i account,sale,purchase --log-level=debug
In step 3, we passed a few configuration options directly from the command line. The first is --add-ons-path, which loads Odoo's core add-ons directory, addons, and your add-ons directory, local, in which you will put your own add-ons modules. Option -d will use the test-12 database or create a new database if it isn't present. The -i option will install the account, sale, and purchase modules. Next, we passed the log-level option and increased the log level to debug so that it will display more information in the log.