تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
20201 أدوات العرض

I make some fields to save in it my data and make some other fields as boolean to make condition by it fields 

for example if f_bool1 is false i want to invisible f1 from tree view how can I make it .

thank you so much

الصورة الرمزية
إهمال
أفضل إجابة

In your case on the tree view you need to add attributes to the field. Try with

<filed name="f1" attrs="{'invisible':[('f_bool1','=',false)]}"/> 

Should works.


الصورة الرمزية
إهمال

In Tree view does it hide complete column when we use attrs="{'invisible':[('f_bool1', '=', false)]}", I found it only hides the data/content in that column. So I tried to using invisible="context.get('f_bool1') = false" instead of above one. It hides the complete column in Tree view. I hope it will help you.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 15
3723
0
فبراير 19
5717
3
سبتمبر 18
5584
2
فبراير 18
6890
0
فبراير 16
3676