Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2649 Zobrazení

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.

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Autor Nejlepší odpověď

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 22
3298
2
srp 19
19852
1
lis 24
1381
5
čvc 24
92368
1
pro 23
2843