Se rendre au contenu
Menu
Cette question a été signalée
883 Vues

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
Ignorer
Publications associées Réponses Vues Activité
1
août 15
2696
2
déc. 24
2795
1
mai 24
2088
2
avr. 24
3556
0
avr. 24
484