Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2315 Ansichten

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Dez. 22
7119
1
Juni 25
15006
3
Apr. 25
5061
0
Dez. 24
1263
2
Juli 24
1980