Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1674 Widoki

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sie 15
3424
2
gru 24
5948
1
maj 24
2844
2
kwi 24
4662
0
kwi 24
1054