
上QQ阅读APP看书,第一时间看更新
How to do it…
To add the ~/odoo-dev/local-addons directory to the addons path of the instance, follow these steps:
- Edit the configuration file for your instance ~/odoo-dev/my-instance.cfg
- 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
- 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
- Restart your instance:
$ ~/odoo-dev/odoo/odoo-bin -c my-instance.cfg