تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5840 أدوات العرض
button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
الصورة الرمزية
إهمال
أفضل إجابة

Hi,

There's a disabled class which lets you disable the button in odoo. So, change the code to:

<button id="is_approved" name="button_approved" class="oe_highlight disabled" string="Aprobar" type="object" groups="sales_team.group_sale_manager"/>


Regards

الصورة الرمزية
إهمال
أفضل إجابة

attrs="{'readonly': [('state', '=', 'disabled')]

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 24
1439
1
سبتمبر 23
1837
5
يوليو 25
7640
3
يناير 24
13552
1
أبريل 23
227