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.
Hi I am using Win 7 with eclipse IDE along with Python . I have created a custom module for openerp 7. My module updated successfully and it is in the openerp module list . Now I am trying to add fields in my module , but when I try to declare fields I am facing an error ( " ImportError: No module named openerp.osv ") . How to overcome this issue ? Please help
Hopes for suggestion . Thanks
im also creating simple modules for openERP v 7.0 until i encountered this problem in Odoo v8.0 (former openERP), i solved this problem by changing the traditional syntax for import from from osv import fields,osv to from openerp.osv import osv, fields and make sure in your __init__.py to remove the extension ".py" , example import student not import student.py .... this works for me, i hope this will also work for you.
How did you solve this problem? I have same problem. my openerp-server on eclipse but I get the error when I debug addons modules. I'm quite sure is eclipse configuration. googled all over but people assume once openerp-server start on eclipse then people will be able to debug modules. that is completely wrong. you get this ImportError: No module named openerp.osv that many tutorials do not address. I'm still to see a tutorial on eclipse debug that works without people raising this issue
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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: 6/20/13, 4:15 AM|
|Seen: 17685 times|
|Last updated: 3/16/15, 8:10 AM|