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.
To pytanie dostało ostrzeżenie
2
Odpowiedzi
4387
Widoki
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.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
1
maj 22
|
5299 | ||
|
|
2
sie 19
|
22286 | ||
|
|
1
lis 24
|
4134 | ||
|
Change the Position of field in Xpath
Rozwiązane
|
|
5
lip 24
|
99772 | |
|
|
1
gru 23
|
5088 |