Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
4407 Представления

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
437
2
июл. 25
614
1
июл. 25
1691
3
июл. 25
4131