Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4223 Prikazi

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
Opusti
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
Opusti

Happy to help

Related Posts Odgovori Prikazi Aktivnost
1
dec. 22
17045
0
maj 17
4431
1
jan. 25
23578
3
jun. 24
9597
1
okt. 23
97