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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
mar 15
|
3729 | ||
|
0
lut 19
|
5720 | ||
|
3
wrz 18
|
5589 | ||
|
2
lut 18
|
6893 | ||
|
0
lut 16
|
3676 |