跳至内容
菜单
此问题已终结
2900 查看

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


形象
丢弃
相关帖文 回复 查看 活动
2
12月 22
8036
1
6月 25
16347
3
4月 25
6922
0
12月 24
1965
2
7月 24
8743