Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4011 Vistas

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
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
3
sept 21
9794
4
ene 20
3536
0
nov 18
4783
0
abr 17
4107
2
mar 15
5442