Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
2936 Vues

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
Ignorer
Meilleure réponse

Hi,
You can write it follows:  

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


Thanks

Avatar
Ignorer
Auteur

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

Auteur

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

Meilleure réponse

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


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

Avatar
Ignorer
Publications associées Réponses Vues Activité
0
sept. 25
8
0
sept. 25
3
0
sept. 25
2
0
févr. 25
896
2
oct. 24
3900