Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
7536 Prikazi

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 ???

Avatar
Opusti
Best Answer

Try like this.

invisible="state != 'draft' or initial_invoice = True"
Avatar
Opusti

its work for me,thank you

Best Answer

You can try this. -> invisible="condition 1 or condition 2"

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
feb. 24
2251
0
apr. 24
30
2
jul. 18
14931
1
jun. 25
3302
0
mar. 25
775