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
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
2
Respostes
326
Vistes
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!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
0
de gen. 25
|
692 | ||
|
3
d’ag. 24
|
15782 | ||
|
1
de nov. 19
|
3688 | ||
|
1
d’ag. 18
|
4978 | ||
|
1
de març 15
|
4853 |