Skip to Content
Menu
This question has been flagged

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
Discard
Related Posts Replies Views Activity
2
Dec 22
7940
1
Jun 25
16170
3
Apr 25
6743
0
Dec 24
1891
2
Jul 24
8026