Skip to Content
Menu
This question has been flagged
1 Odpoveď
4007 Zobrazenia

how can i replace 

field.related to use it in v8 

'product_id': fields.related('order_line', 'product_id', type='many2one', relation='product.product', string='Product'),
Avatar
Zrušiť
Best Answer

In the new API, there is no fields.related. You can try

number = fields.Char(related='move_id.name', store=True, readonly=True, copy=False)

where move_id is a Many2one relation

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
3
sep 21
9790
4
jan 20
3535
0
nov 18
4781
0
apr 17
4106
2
mar 15
5442