How can hide Restricted button from Company doctype?

I was trying to hide Restricted Label from the Company Doctype. I just want to hide it not to delete it.

I’ve tried to put some jquery scripts using custom scripts. but didn’t worked.

Anykind of help is much appreciated

1 Like

Hi,
it worked, use it.
restriction .
pass the file path in hooks.py
e.g doctype_list_js = {“Company” : “company/company/company_list.js”}

1 Like

@Jitendra_Rathod Thanks for this snippet. I’ll try it and will post the results here.