Se rendre au contenu
Menu
Cette question a été signalée

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
Ignorer
Publications associées Réponses Vues Activité
2
déc. 22
7205
1
juin 25
15206
3
avr. 25
5313
0
déc. 24
1323
2
juil. 24
2199