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

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
1441
1
7月 25
553
2
7月 25
706
1
7月 25
1756
3
7月 25
4270