Skip to Content
Menu
This question has been flagged
2 Replies
2729 Rodiniai

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.

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Autorius Best Answer

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
geg. 22
3393
2
rugp. 19
19939
1
lapkr. 24
1449
5
liep. 24
92628
1
gruod. 23
2907