Skip to Content
Menu
This question has been flagged
1 Atsakyti
3887 Rodiniai

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.

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

 


Portretas
Atmesti

Happy to help

Related Posts Replies Rodiniai Veikla
1
gruod. 22
16698
0
geg. 17
4057
1
saus. 25
23027
3
birž. 24
9385
1
spal. 23
97