Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3804 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit

Happy to help

Related Posts Odpovědi Zobrazení Aktivita
1
pro 22
16628
0
kvě 17
3996
1
led 25
22926
3
čvn 24
9342
1
říj 23
97