コンテンツへスキップ
メニュー
この質問にフラグが付けられました
910 ビュー

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.

アバター
破棄
関連投稿 返信 ビュー 活動
1
8月 15
2721
2
12月 24
2893
1
5月 24
2119
2
4月 24
3589
0
4月 24
519