Skip to Content
Menú
This question has been flagged
1 Respondre
4004 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
3
de set. 21
9775
4
de gen. 20
3528
0
de nov. 18
4774
0
d’abr. 17
4095
2
de març 15
5424