Where OpenERP (Odoo) finds the modules path?

只谈情不闲聊 提交于 2019-12-04 04:23:40

You can add to the addons_path directive in openerp-server.conf, (separate paths with a comma) or you can use --addons= if starting your server from the command line.

Odoo tries to initializes a set of paths to be loaded from the base addons directory. Check the code for Odoo system path

So, with the help of this method, it loads the basic addons directory and other directories that are added by addons_path.

Generally, we use addons_path at odoo-server.conf and save our addons directory path at it.

Note: the path must contain atleast one OpenERP/Odoo module in it.

user3285866

As of Odoo V8, the "default" addons_path in the odoo-server.conf file should read as follows (assuming you installed Odoo in the "/opt/odoo" path, otherwise change accordingly):

addons_path = /opt/odoo/addons

If you also need to add another "custom" folder for additional modules, separate those with a comma, like this:

addons_path = /opt/odoo/addons,/opt/odoo/custom_modules
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!