Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
20188 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
3720
0
ก.พ. 19
5714
3
ก.ย. 18
5581
2
ก.พ. 18
6887
0
ก.พ. 16
3672