Skip to Content
Menu
This question has been flagged
1 Atsakyti
4018 Rodiniai

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'),
Portretas
Atmesti
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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
rugs. 21
9798
4
saus. 20
3551
0
lapkr. 18
4783
0
bal. 17
4112
2
kov. 15
5444