コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
435 ビュー
attrs="{'readonly': [('invoice_count','!=',0),('state','=','sale')]}" This is odoo 16 xml readonly attribute part, Can someone help me to convert this readonly condituion to odoo18
アバター
破棄
最善の回答

Hi,


Try with the following code.

<field name="your_field_name" readonly="invoice_count != 0 and state == sale)"/>


Hope it helps

アバター
破棄
最善の回答
readonly="invoice_count and state == 'sale'"
アバター
破棄
関連投稿 返信 ビュー 活動
0
1月 25
772
3
8月 24
15845
1
11月 19
3758
1
8月 18
5041
1
3月 15
4936