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

i need to write code that takes a computed field, the find out if there is model/s related to it, and get the model name dynamically,


for example:

i have in pos.order model there is the amount_total field:

amount_total = fields.Float(compute='_compute_amount_all', string='Total', digits=0)

the amount total is computed form pos.order.line ,  but if i want a way to get the model name dynamically from the code


Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Ara 22
7248
1
Haz 25
15311
3
Nis 25
5447
0
Ara 24
1353
Compute Fields Çözüldü
2
Tem 24
2365