Skip to Content
Menú
This question has been flagged
2388 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
2
de des. 22
7213
1
de juny 25
15233
3
d’abr. 25
5356
0
de des. 24
1325
2
de jul. 24
2250