コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3797 ビュー

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
16613
0
5月 17
3984
1
1月 25
22916
3
6月 24
9329
1
10月 23
97