跳至内容
菜单
此问题已终结
1 回复
3878 查看

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.

形象
丢弃
最佳答案

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

 


形象
丢弃

Happy to help

相关帖文 回复 查看 活动
1
12月 22
16694
0
5月 17
4048
1
1月 25
22993
3
6月 24
9385
1
10月 23
97