Skip to Content
Menú
This question has been flagged
2 Respostes
7571 Vistes

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
Descartar
Best Answer

Try like this.

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

its work for me,thank you

Best Answer

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
3
de febr. 24
2286
0
d’abr. 24
30
2
de jul. 18
14942
1
de juny 25
3320
0
de març 25
783