Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3896 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar

Happy to help

Publicações relacionadas Respostas Visualizações Atividade
1
dez. 22
16705
0
mai. 17
4064
1
jan. 25
23038
3
jun. 24
9389
1
out. 23
97