Hello. I want to have my xpath customisations to take effect depending on the value of another boolean field. In other words, is it possible to show the default view of res.partner when a boolean is checked and the inherited and customised view when the boolean isn't checked. Every answer is appreciated, thank you.
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,
Showing or hiding the fields based on this boolean field will help ? If yes, you can easily achieve it using attrs in Odoo.
Sample: attrs="{'invisible': [('state', '!=', ('option'))]}"
Video: Conditionally Hide Fields in Odoo
Thanks
I don't think I can as I've manipulated the default fields in the view too. I think putting attrs would just make them invisible, not the way they were as default.
¿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 | |
---|---|---|---|---|
|
1
may 22
|
2933 | ||
|
2
ago 19
|
19335 | ||
|
1
nov 24
|
933 | ||
|
5
jul 24
|
90972 | ||
|
1
dic 23
|
2515 |