Menu

Trợ giúp

1

Dear Odoo, Can You Please Add "disabled" Attribute?

Avatar
Faris Fathurrahman

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

Ảnh đại diện
Huỷ bỏ
1 Trả lời
0
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

1 Bình luận
Ảnh đại diện
Huỷ bỏ

<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