İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4073 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Eyl 21
9845
4
Oca 20
3600
0
Kas 18
4830
0
Nis 17
4157
2
Mar 15
5480