跳至內容
選單
此問題已被標幟
1 回覆
3643 瀏覽次數

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
16425
0
5月 17
3782
1
1月 25
22537
3
6月 24
9160
1
10月 23
97