Odoo 11 Development Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

How to do it…

To add the ~/odoo-dev/local-addons directory to the addons path of the instance, follow these steps:

  1. Edit the configuration file for your instance ~/odoo-dev/my-instance.cfg
  2. Locate the line starting with addons_path =. By default, it should look like the following:
addons_path = ~/odoo-dev/odoo/odoo/addons,~/odoo-dev/odoo/addons
  1. Modify the line by appending a comma followed by the name of the directory you want to add to the addons path:
addons_path = ~/odoo-dev/odoo/odoo/addons,
~/odoo-dev/odoo/addons,~/odoo-dev/local-addons
  1. Restart your instance:
$ ~/odoo-dev/odoo/odoo-bin -c my-instance.cfg