跳至內容
選單
此問題已被標幟
4943 瀏覽次數

Consider I write a module like this:

from osv import fields, osv
from sale_layout import one2many_mod2

class sale_order(osv.osv):

    _inherit = "sale.order"
    _columns = {
        'saleM102_line': one2many_mod2('sale.m102', 'order_id', 'SaleM102'),
    }
sale_order()

OpenERP won't start up, because cannot find sale_layout nor one2many_mod2.

[2013-11-13 10:10:48,390][test] CRITICAL:init:cannot import name one2many_mod2

How can I tell python to look there ?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
5月 25
3415
1
5月 18
39409
0
7月 24
1282
0
8月 18
7073
2
12月 16
9705