Skip to Content
Menú
This question has been flagged
1 Respondre
6199 Vistes

I try to invisible some field by clicking check box but I don't know how can I make it .

please help me.

thank you so much

Avatar
Descartar
Best Answer

Yes, it is possible. Try this (in xml):

<field name="my_checkbox"/>
<field name="my_foo1" attrs="{'invisible':[('my_checkbox','=',False)]}"/>
<field name="my_foo2" attrs="{'invisible':[('my_checkbox','!=',False)]}"/>

or like this:

<field name="my_foo3" invisible="context.get('my_checkbox',False)"/>

 

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
d’ag. 18
3452
3
d’ag. 15
3302
2
de jul. 15
4980
0
de març 15
3967
1
de març 15
3134