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:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
2
返信
435
ビュー
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 |