Configuring the add-ons path
With the help of the addons_path
parameter, you can load your own add-on modules into Odoo. When Odoo initializes a new database, it will search for add-on modules within directories that have been provided in the addons_path
configuration parameter. Odoo will search in these directories for the potential add-on module.
Directories listed in addons_path
are expected to contain subdirectories, each of which is an add-on module. Following the initialization of the database, you will be able to install modules that are given in these directories.
Getting ready
This recipe assumes that you have an instance ready with a configuration file generated, as described in the Storing the instance configuration in a file recipe in Chapter 1, Installing the Odoo Development Environment. Note that the source code of Odoo is available in ~/odoo-dev/odoo
, and the configuration file in ~/odoo-dev/odoo/myodoo.cfg
.
How to do it…
To add the ~/odoo-dev...