Skip to Content
मेन्यू
This question has been flagged
1 Reply
3957 Views

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.

Avatar
Discard
Best Answer

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()

 


Avatar
Discard

Happy to help

Related Posts Replies Views Activity
1
दिस॰ 22
16809
0
मई 17
4148
1
जन॰ 25
23193
3
जून 24
9448
1
अक्तू॰ 23
97