Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4015 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
set 21
9796
4
gen 20
3546
0
nov 18
4783
0
apr 17
4110
2
mar 15
5444