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

how to define domain syntax that has a value same as your custome field ? , for example i have this code :

_columns = {

'invoice_id': fields.many2one('account.invoice',string='Invoice',domain=[('state','=','paid'),('type','=','out_invoice')],required=True),

'no_sales_id': fields.many2one('account.invoice.line', domain=[('number','=','invoice_id')],string='Order Line', required=True),

}

'number' is fieldname reference in customer invoice

thank you,

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
10月 23
1351
1
7月 25
417
2
7月 25
597
1
7月 25
1677
3
7月 25
4120