Remove/Hide buttons/Links from doctype in erpnext

Hello, I want to remove OR hide some of the buttons/Links from the below photos permanently. I tried many solutions that are available on the forum but it’s not working. Little help appreciated.

action menu

Thanks

Hi @erpnxt_user,

Please apply client script in list view:

frappe.listview_settings['Sales Order'].onload = function(listview) {
		listview.page.actions.find('[data-label="Edit"],[data-label="Export"]').parent().parent().remove();
		listview.page.menu.find('[data-label="Edit"],[data-label="Import"]').parent().parent().remove();
}; 

Thank You!

2 Likes

Thanks, I tried it before but it wasn’t working and now it’s working lol

1 Like