Hello, I would like to know in Odoo 14 if there is any way how to make checkbox field on view form greyed out when set to False. It means to behave in the same way like common text fields when empty.
لقد تم الإبلاغ عن هذا السؤال
1
الرد
4324
أدوات العرض
Hi,
Please refer the code below to change the label of checkbox to grey when it is disabled.
<div>
<label for="checkbox_field" string="ssss" style="color:black;"
attrs="{'invisible': [('checkbox_field', '=', False)]}"/>
<label for="checkbox_field" string="ssss" style="color:grey;"
attrs="{'invisible': [('checkbox_field', '=', True)]}"/>
<field name="checkbox_field" nolabel="1"/>
</div>
Regards
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
0
يونيو 21
|
4719 | ||
|
|
1
سبتمبر 24
|
4499 | ||
|
|
1
مايو 23
|
5158 | ||
|
|
1
سبتمبر 21
|
7637 | ||
|
|
2
فبراير 16
|
8561 |