Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4396 Widoki

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,

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
paź 23
1356
1
lip 25
419
2
lip 25
601
1
lip 25
1680
3
lip 25
4121