Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4399 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
říj 23
1358
1
čvc 25
419
2
čvc 25
601
1
čvc 25
1681
3
čvc 25
4121