How to hide item from Menu on Module main Page

Hi

I want to hide Install Apps and Set Desktop Icons from the menu. please guide.

Go to modules.js file and check this part of the code:

page.add_menu_item(__('Set Desktop Icons'), function() {
		frappe.route_options = {
			"user": frappe.session.user
		};
		frappe.set_route("modules_setup");
	});

	if(frappe.user.has_role('System Manager')) {
		page.add_menu_item(__('Install Apps'), function() {
			frappe.set_route("applications");
		});
	}

If you remove this part of the code, it will hide the two items you are referring to, from the menu. You can add any other items if you want instead of these two.

3 Likes

Dear Shreya Thanks for your support. It works