Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3842 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona

Happy to help

Post correlati Risposte Visualizzazioni Attività
1
dic 22
16665
0
mag 17
4042
1
gen 25
22978
3
giu 24
9379
1
ott 23
97