跳至內容
選單
此問題已被標幟
1 回覆
6207 瀏覽次數

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
3463
3
8月 15
3306
2
7月 15
4998
0
3月 15
3976
1
3月 15
3155