Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
2617 Ansichten

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
Verwerfen
Beste Antwort

Hi,
You can write it follows:  

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


Thanks

Avatar
Verwerfen
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.

Beste Antwort

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


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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Feb. 25
835
2
Okt. 24
3775
1
Juni 19
6046
1
Jan. 17
3903
0
März 15
5228