OpenERP(Odoo)在哪里找到模块路径? [英] Where OpenERP (Odoo) finds the modules path?
问题描述
我正在使用Odoo v.8.我想找出Odoo可以在哪里找到模块所在位置的信息,以加载它们.我知道在文件openerp-server.conf中有一个变量addons_path.我在变量中找到的唯一文件是opt/odoo/odoo/debian/openerp-server.conf.它具有以下值:
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
但是,Odoo应用程序正在使用"/opt/odoo/odoo/addons"路径中的模块. Odoo从何处检索此信息?如果我有一个包含新模块的新目录,可以在哪里更新路径?我已经使用新的模块路径更新了opt/odoo/odoo/debian/openerp-server.conf中的addons_path,但Odoo仍无法在设置/更新模块列表"中看到这些模块.我已经重新启动服务器.
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.
感谢您的帮助!
推荐答案
您可以将其添加到openerp-server.conf中的addons_path
指令中(用逗号分隔路径),或者如果启动您的计算机,则可以使用--addons=
命令行访问服务器.
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.
这篇关于OpenERP(Odoo)在哪里找到模块路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!