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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
2
Respuestas
324
Vistas
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'"
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
0
ene 25
|
692 | ||
|
3
ago 24
|
15779 | ||
|
1
nov 19
|
3687 | ||
|
1
ago 18
|
4978 | ||
|
1
mar 15
|
4853 |