Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
6239 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
ago. 18
3549
3
ago. 15
3414
2
jul. 15
5091
0
mar. 15
4120
1
mar. 15
3232