コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2389 ビュー

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
7214
1
6月 25
15233
3
4月 25
5361
0
12月 24
1325
2
7月 24
2256