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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
2
回复
353
查看
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 |