Adding to the addons path

To have new modules available for Odoo, we need to make sure the directory containing the module is in the addons path, then update the Odoo module list. Both actions have been explained in detail in the previous chapter, but here we will continue with a brief overview of what is needed.

We will position ourselves in our work directory and start the server with the appropriate addons path configuration:

$ cd ~/odoo-dev
$ ./odoo/odoo-bin -d todo --addons-path="custom-addons,odoo/addons" --save

The --save option saves the options you used in a configuration file. This spares us from repeating them every time we restart the server; just run ./odoo-bin and the last saved option will be used. You can specify the configuration ...

Get Odoo 11 Development Essentials - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.