Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4005 Vizualizări

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'),
Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
sept. 21
9776
4
ian. 20
3531
0
nov. 18
4776
0
apr. 17
4096
2
mar. 15
5430