Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
7538 Zobrazení

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
Zrušit
Nejlepší odpověď

Try like this.

invisible="state != 'draft' or initial_invoice = True"
Avatar
Zrušit

its work for me,thank you

Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
úno 24
2251
0
dub 24
30
2
čvc 18
14931
1
čvn 25
3302
0
bře 25
775