Skip to Content
मेन्यू
This question has been flagged
4427 Views

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,

Avatar
Discard
Related Posts Replies Views Activity
0
अक्तू॰ 23
1400
1
जुल॰ 25
489
2
जुल॰ 25
641
1
जुल॰ 25
1713
3
जुल॰ 25
4164