Skip to Content
मेन्यू
This question has been flagged
1 Reply
4021 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
3
सित॰ 21
9800
4
जन॰ 20
3553
0
नव॰ 18
4785
0
अप्रैल 17
4113
2
मार्च 15
5444