In ERPNext v15, I need a way to hide or disable certain modules globally across a site (not on a per-user or per-role basis).
For example, our business is not involved in manufacturing, so we do not want users to see modules such as Manufacturing or Quality anywhere in the system. Ideally, these modules would be completely hidden from the sidebar and unavailable to all users, including the Administrator.
I have found several forum threads that discuss restricting access for specific users or roles, but that is not what I am looking for. Instead, I would like to know whether there is a supported way to disable selected modules when creating a new site, so they are hidden for everyone by default.
Has anyone implemented this in ERPNext v15, or is there a recommended approach?
hii there,
ERPNext v15 does not provide a built-in feature to completely disable standard modules (such as Manufacturing or Quality) at the site level. There is a option “Is Hidden” on a workspace that can hide the workspace from the sidebar and desk navigation, but it does not actually disable the underlying DocTypes, reports, or pages…
if your want is that to simply remove modules from the user interface, you can customize the relevant workspaces and mark them as hidden, however, users with permissions can still access the underlying DocTypes through Global Search, links, reports, or direct URLs
for stricter control, you would need to remove access to the module’s DocTypes through the Role Permissions Manager, this prevents users from creating or viewing records from those modules… however, this approach is role-based and does not truly disable the module for the entire site
if you require a site-wide solution where certain modules are completely unavailable to all users (including Administrator), this would typically require customization, such as hiding workspaces through fixtures, overriding desk configuration, or creating a custom app that removes or restricts access to specific modules
ERPNext does not currently offer an officially supported “disable module” setting during site creation
Hi @saaad_asiiif
I was able to delete a full workspace from the workspace doctype and it does not show-up in the sidebar
Is there any unforeseen domino effect somewhere else?
yes, there can be domino effects, but most of them are manageable if you know where to look… deleting a workspace record is safer than deleting the underlying DocTypes, but it’s not entirely without consequence… keep in mind that when you run bench migrate or apply patches after an ERPNext version update, the standard workspace records are often re-inserted if they don’t exist
ERPNext uses JSON fixtures (in frappe/erpnext) to ensure core workspaces are present, a missing standard workspace may be silently recreated during the next migration
So, deleting it is not a permanent solution that is just a one time fix it may come back with the next upgrade
1 Like
We have successfully hidden the modules using overrides.
Thank you very much.
Jumping in on this older post because hiding modules can be a game-changer. Has anyone tried using feature toggles or hooks to achieve this more cleanly? I’d be curious to know if ERPNext v15 has seen any updates or new strategies for module management since the original discussion. Always interested in learning fresh tricks!
Good day.
Could you tell us how to do it?