Odoo - "ImportError: No module named openerp.osv "?

How to fix "ImportError: No module named openerp.osv "?

Support
Support
5000
| 2 1 2
Asked on 6/20/15, 2:47 PM
0
vote
4606 Views

Change 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    

I have tried " from osv import fields , osv" but still the same issue , Then Try below
from openerp.osv import fields, osv
class your_class_name(osv.Model):

Support
Support
5000
| 2 1 2
Answered on 6/20/15, 2:51 PM
0
vote

Your answer

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!

Ask a Question

Keep Informed

About This Forum

This forum is for HiTechnologia Employees & just Odoo general knowledge purpose only.

Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 6/20/15, 2:47 PM
Seen: 4606 times
Last updated: 6/20/15, 2:51 PM