跳至内容
菜单
此问题已终结
1 回复
6243 查看

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

形象
丢弃
最佳答案

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

 

形象
丢弃
相关帖文 回复 查看 活动
0
8月 18
3549
3
8月 15
3416
2
7月 15
5092
0
3月 15
4120
1
3月 15
3232