Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
7568 Vues

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
Ignorer
Meilleure réponse

Try like this.

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

its work for me,thank you

Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
3
févr. 24
2281
0
avr. 24
30
2
juil. 18
14942
1
juin 25
3318
0
mars 25
783