Skip to Content
Menu
This question has been flagged
2445 Rodiniai

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


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 22
7262
1
birž. 25
15332
3
bal. 25
5471
0
gruod. 24
1366
2
liep. 24
2424