Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6245 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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)"/>

 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
aug. 18
3549
3
aug. 15
3416
2
iul. 15
5092
0
mar. 15
4120
1
mar. 15
3232