Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2368 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 22
7197
1
čvn 25
15187
3
dub 25
5290
0
pro 24
1323
Compute Fields Vyřešeno
2
čvc 24
2170