跳至內容
選單
此問題已被標幟
2374 瀏覽次數

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
7200
1
6月 25
15192
3
4月 25
5303
0
12月 24
1323
2
7月 24
2180