Hello, I would like to know in Odoo 14 if there is any way how to make checkbox field on view form greyed out when set to False. It means to behave in the same way like common text fields when empty.
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
Hi,
Please refer the code below to change the label of checkbox to grey when it is disabled.
<div>
<label for="checkbox_field" string="ssss" style="color:black;"
attrs="{'invisible': [('checkbox_field', '=', False)]}"/>
<label for="checkbox_field" string="ssss" style="color:grey;"
attrs="{'invisible': [('checkbox_field', '=', True)]}"/>
<field name="checkbox_field" nolabel="1"/>
</div>
Regards
¿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
jun 21
|
2446 | ||
|
1
sept 24
|
1695 | ||
|
1
may 23
|
2415 | ||
|
1
sept 21
|
5062 | ||
|
2
feb 16
|
6270 |