Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2381 Представления

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


Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
дек. 22
7211
1
июн. 25
15211
3
апр. 25
5323
0
дек. 24
1323
Compute Fields Решено
2
июл. 24
2210