i want to add this condition in a button
invisible="['|', ('state', '!=', 'draft'), ('initial_invoice', '=', True)]"
It is not working for odoo17, How to make the or condition work ???
Deze vraag is gerapporteerd
2
Antwoorden
11399
Weergaven
Try like this.
invisible="state != 'draft' or initial_invoice = True"
its work for me,thank you
You can try this. -> invisible="condition 1 or condition 2"
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
|
3
feb. 24
|
3980 | ||
|
|
0
apr. 24
|
30 | ||
|
|
2
jul. 18
|
17290 | ||
|
Always invisible fields on V18
Opgelost
|
|
1
jun. 25
|
7787 | |
|
|
0
mrt. 25
|
2436 |