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 ???
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
2
Respuestas
6339
Vistas
Try like this.
invisible="state != 'draft' or initial_invoice = True"
its work for me,thank you
You can try this. -> invisible="condition 1 or condition 2"
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
3
feb 24
|
1895 | ||
|
0
abr 24
|
30 | ||
|
2
jul 18
|
14468 | ||
Always invisible fields on V18
Resuelto
|
|
1
may 25
|
2327 | |
|
0
mar 25
|
419 |