跳至內容
選單
此問題已被標幟
2 回覆
356 瀏覽次數
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
705
3
8月 24
15794
1
11月 19
3695
1
8月 18
4989
1
3月 15
4860