Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
7559 Visninger

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
Kassér
Bedste svar

Try like this.

invisible="state != 'draft' or initial_invoice = True"
Avatar
Kassér

its work for me,thank you

Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
3
feb. 24
2266
0
apr. 24
30
2
jul. 18
14938
1
jun. 25
3308
0
mar. 25
781