Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4017 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
sep. 21
9798
4
jan. 20
3549
0
nov. 18
4783
0
apr. 17
4111
2
mar. 15
5444