This question has been flagged
1 Reply
1754 Views

Exactly as what the title said,


because invisible attribute is not always the case

there are some scenarios from UI and/or UX perspectives where enabling or disabling buttons are much better and more likeable than showing or hiding them

I hope that it can be considered in the future, or sooner
Thanks in advance

Avatar
Discard
Best Answer

Hello, @Faris Fathurrahman

Hope you are doing well,

xml attribute : disabled="disabled"

Please find code in comment.

I hope this will help you.

Thanks & Regards, Email: odoo@aktivsoftware.com Skype: kalpeshmaheshwari

Avatar
Discard

<button name="customer_report" position="attributes">
<attribute name="disabled">disabled</attribute>
</button>
OR
<button name="customer_report" position="attributes">
<attribute name="class">disabled</attribute>
</button>

Dear Odoo, Can You Please Add "disabled" Attribute?
https://www.odoo.com