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

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
1408
1
7月 25
503
2
7月 25
663
1
7月 25
1726
3
7月 25
4188