İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4053 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
9817
4
Oca 20
3575
0
Kas 18
4792
0
Nis 17
4131
2
Mar 15
5450