Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2461 Näkymät

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
jouluk. 22
7315
1
kesäk. 25
15374
3
huhtik. 25
5548
0
jouluk. 24
1410
2
heinäk. 24
2564