Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I often see modules which are using
My installation cannot resolve a library without the preceeding "openerp.". I think that this depends on the type of installation and it would not be a problem if a deb-Package is installed.
So my question:
What can I do, than modules without the preceeding "openerp." are working for my installation?
Here is the log of the installation of a module:
File "/opt/openerp/openerp-7.0-bzr/server/openerp/modules/module.py", line 346, in load_openerp_module __import__('openerp.addons.' + module_name) File "/opt/openerp/openerp-7.0-bzr/server/openerp/modules/module.py", line 82, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/opt/openerp/addons-elbati/hr_attendance_analysis/__init__.py", line 22, in <module> import hr_attendance File "/opt/openerp/addons-elbati/hr_attendance_analysis/hr_attendance.py", line 24, in <module> from tools.translate import _ ImportError: No module named tools.translate
Thanks to GEM I have solved this issue by dynamically adding the openerp directory to the python path.
I have added two lines to file
#!/usr/bin/env python import openerp # Start ADD import sys sys.path.append('openerp') # End ADD if __name__ == "__main__": openerp.cli.main() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
However it is strange that I am the only guy who runs openerp without the deb package and focused this issue.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/28/13, 12:40 PM|
|Seen: 12543 times|
|Last updated: 3/16/15, 8:10 AM|