Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2764 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 22
3429
2
ago 19
19991
1
nov 24
1495
5
lug 24
92745
1
dic 23
2947