Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
7609 Weergaven

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
Annuleer
Beste antwoord

Try like this.

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

its work for me,thank you

Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
feb. 24
2320
0
apr. 24
30
2
jul. 18
14969
1
jun. 25
3362
0
mrt. 25
795