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

Hello, I not sure how to code this where it need to be invisible base on either of 2 conditions:

attrs="{'invisible': ['|', ('load', '=', True), ('project_name', 'not in', 'Field Service')]}"/>


Version = 17.0 enterprise

Can any please help?

Thank you very much!!

Avatar
Descartar
Mejor respuesta

Hi,
You can write it follows:  

invisible="load == True or project_name not in 'Field Service'"


Thanks

Avatar
Descartar
Autor

Perfect! thank you!!!

This is wrong, it should be (according to you old condition)

Niyas Raphy (Walnut IT)
1 giờ trước
Câu trả lời hay nhất
Hi,
You can write it follows:

invisible="load == True or project_name not in 'Field Service'"

ah i have wrongly written as and, changed to or

Autor

Thank all, Yes, I realized it should be "or" and make the adjustment. Very much appreciate your help.

Mejor respuesta

Previous answer is wrong, it should be (according to you old condition)


invisible="load == True or project_name not in 'Field Service'"

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ago 25
52
0
ago 25
7
0
feb 25
726
2
oct 24
3617
1
jun 19
5873