跳至内容
菜单
此问题已终结
4412 查看

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
1362
1
7月 25
453
2
7月 25
624
1
7月 25
1696
3
7月 25
4132