I was Created a client Script for Hide list view Action Menu Items
and it was working In Development Mode
but was not working in Production Mode
Delete the old Client script and created New One
new One is Working Perfectly
frappe.listview_settings['ATM Leads'] = {
onload: function(listview) {
if (frappe.user.has_role('OC')) {
setTimeout(() => {
// Use a direct selector to find the Edit button by its data-label attribute
listview.page.actions.find('[data-label="Export"]').closest('.dropdown-item').remove();
listview.page.actions.find('[data-label="Apply%20Assignment%20Rule"]').closest('.dropdown-item').remove();
listview.page.actions.find('[data-label="Clear%20Assignment"]').closest('.dropdown-item').remove();
listview.page.actions.find('[data-label="Assign%20To"]').closest('.dropdown-item').remove();
listview.page.actions.find('[data-label="Add%20Tags"]').closest('.dropdown-item').remove();
},
500);
}
}
};