Skip to Content
Menú
This question has been flagged
4387 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
0
d’oct. 23
1347
1
de jul. 25
417
2
de jul. 25
595
1
de jul. 25
1672
3
de jul. 25
4118