Skip to Content
Menu
This question has been flagged
1 Atsakyti
20212 Rodiniai

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

Portretas
Atmesti
Best Answer

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.


Portretas
Atmesti

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 Replies Rodiniai Veikla
1
kov. 15
3725
0
vas. 19
5718
3
rugs. 18
5588
2
vas. 18
6892
0
vas. 16
3676