تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6224 أدوات العرض

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
أغسطس 18
3498
3
أغسطس 15
3386
Certification ODOO تم الحل
2
يوليو 15
5049
0
مارس 15
4026
1
مارس 15
3191