Ir al contenido
Menú
Se marcó esta pregunta
2394 Vistas

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
Publicaciones relacionadas Respuestas Vistas Actividad
2
dic 22
7220
1
jun 25
15255
3
abr 25
5386
0
dic 24
1330
2
jul 24
2287