Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
6339 Vistas

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
Mejor respuesta

Try like this.

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

its work for me,thank you

Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
feb 24
1895
0
abr 24
30
2
jul 18
14468
1
may 25
2327
0
mar 25
419