Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where OpenERP (Odoo) finds the modules path?

Tags:

odoo

openerp

I am using Odoo v.8. I want to find out where Odoo finds information where the modules are, to load them. I am aware there is a variable addons_path in the file openerp-server.conf. The only file I have found the variable in is opt/odoo/odoo/debian/openerp-server.conf. It has the following value:

addons_path = /usr/lib/python2.7/dist-packages/openerp/addons 

However, the Odoo application is using modules from "/opt/odoo/odoo/addons" path. Where the Odoo retrieves this information from? If I have a new directory with new modules, where I can update the path? I have updated addons_path in opt/odoo/odoo/debian/openerp-server.conf with new modules path, but Odoo still cannot see the modules in Settings/Update Modules List. I have restarted the server.

Thanks for your help!

like image 876
SmithMcPatrick Avatar asked Jan 20 '15 19:01

SmithMcPatrick


1 Answers

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.

like image 93
eljefejb Avatar answered Oct 04 '22 21:10

eljefejb