Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2363 Vizualizări

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


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
dec. 22
7191
1
iun. 25
15175
3
apr. 25
5271
0
dec. 24
1321
2
iul. 24
2149