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

I read I should begin with:

from odoo import Model, fields 
class mantenimientos(Model):
_name = 'project.mantenimientos'

But it gives me the following error in the log file:

ImportError: No module named odoo

I'm in Windows, and installed  Odoo 8.0-20150312. Hope someone can help me.

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

As docs said at: https://www.odoo.com/documentation/8.0/reference/orm.html

from openerp import models, fields
class AModel(models.Model):
_name = 'a.model.name'
field1 = fields.Char()

 


الصورة الرمزية
إهمال

Happy to help

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 22
16698
0
مايو 17
4057
1
يناير 25
23027
3
يونيو 24
9385
1
أكتوبر 23
97