تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
9091 أدوات العرض

I'm a newbie in Odoo and python. After tried to make a custom module based on tutorial on odoo v9 page, I found some trouble when running it. It said that can't find the module named openerp. 

Here's the text from my IDE :

        Traceback (most recent call last): File "C:/Program Files (x86)/Odoo 9.0-20160921/server/openerp/addons/openacademy/models/models.py", line 2, in <module> from openerp import models, fields, apiImportError: No module named openerp

الصورة الرمزية
إهمال
أفضل إجابة

just add Path in your odoo-server.config file and edit--->>>  addons_path = /opt/odoo/9.0/9.0-Ent,/opt/odoo/9.0/9.0/addons,("your custom module path"),


simply copy the path link and paste it.. This will work

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
5
مايو 16
2671
1
أكتوبر 17
11346
2
سبتمبر 16
5449
1
أغسطس 16
3603
1
سبتمبر 22
6820