Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4409 Переглядів

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,

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
жовт. 23
1360
1
лип. 25
449
2
лип. 25
624
1
лип. 25
1695
naked domain set up Вирішено
3
лип. 25
4132