Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2359 Visualizzazioni

Hello,


I am trying to develop, for Odoo v16, a way to make a form view read only based on condition.

I know how to access, in js/owl, archInfo -> xmlDoc attributes so that if I write readonly="[('state','=','draft')]" I can extract the value of readonly.

But I don't know how to evaluate that expression and I did't found the place where it is evaluated in Odoo.


Can anyone tell me where is Odoo evaluating the domain or how is it done to get the result of [('state','=','draft')] or any other domain?


Thank you.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 15
4037
0
ott 25
232
2
dic 24
8634
1
mag 24
3464
2
apr 24
6706