跳至内容
菜单
此问题已终结
2 回复
353 查看
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
698
3
8月 24
15791
1
11月 19
3693
1
8月 18
4986
1
3月 15
4857