Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2811 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mai 22
3480
2
aug. 19
20064
1
nov. 24
1633
5
iul. 24
92891
1
dec. 23
3045