Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2242 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
dic 22
6994
1
giu 25
14876
3
apr 25
4832
0
dic 24
1144
2
lug 24
1851