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 odoo18Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- प्रोजेक्ट
- MRP
This question has been flagged
2
Replies
2241
Views
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'"
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
0
जन॰ 25
|
1375 | ||
|
|
3
अग॰ 24
|
16819 | ||
|
|
1
नव॰ 19
|
4327 | ||
|
|
1
अग॰ 18
|
5602 | ||
|
|
1
मार्च 15
|
5676 |