Restrict Debug Mode Access
by Sheikh Muhammad Saad https://odooelevate.odoo.com/ , OdooElevate https://odooelevate.odoo.com/Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 175 |
Technical Name |
oe_restrict_debug_mode |
License | AGPL-3 |
Website | https://odooelevate.odoo.com/ |
Versions | 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 175 |
Technical Name |
oe_restrict_debug_mode |
License | AGPL-3 |
Website | https://odooelevate.odoo.com/ |
Versions | 17.0 18.0 |
Overview
The Restrict Debug Mode Access module empowers administrators to tightly control access to Odoo's powerful Developer (Debug) Mode. This enhances security and prevents unintended system modifications by unauthorized users.
This module is under copyright of OdooElevate and is fully compatible with Odoo 17.
Key Features
- Group-Based Access: Control Debug Mode access by assigning users to a dedicated security group, ensuring only authorized personnel can enable it.
- Forced Page Refresh: Unauthorized attempts to access Debug Mode trigger an immediate full-screen "Access Denied" message, followed by an automatic page reload to ensure the restriction is enforced.
- Enhanced Security: Prevents non-technical users or those without proper permissions from accidentally or intentionally using Debug Mode, safeguarding your Odoo instance's integrity.
- Seamless Integration: Integrates directly with Odoo's core session management and web assets without modifying core files, ensuring compatibility and ease of updates.
Restriction Group
Administrators can easily manage Debug Mode access by assigning users to the "Restrict Debug Mode Access" group directly from their user settings. Simply navigate to `Settings > Users & Companies > Users`, select a user, go to the `Access Rights` tab, and check the box under `EXTRA RIGHTS`.

Debug Mode
The module specifically targets the "Debug Mode" (Developer Mode) button, typically represented by a bug icon, located in the top-right corner of the Odoo backend interface. When a user without the necessary permissions attempts to click this button, the module's restrictions are activated, preventing them from accessing advanced developer functionalities.

Access Denied Screen
Upon an unauthorized attempt to activate Debug Mode, the user is presented with a clear, full-screen "ACCESS DENIED" message. This visual alert informs them that they are not permitted to use Debug Mode. The screen also includes a countdown, indicating that the page will automatically refresh after 5 seconds, ensuring the restriction is promptly re-enforced.

Our Services
OdooElevate offers customized and scalable Odoo services that are specifically designed to resolve your actual business needs. Our proposition is to enhance your operations, ensuring they run more efficiently, intelligently, and swiftly, regardless of whether you're initiating a new setup or refining your current Odoo implementation.

Customization
Tailored modules to fit your business process.

Automation
Save time with workflows that run on autopilot.

Consulting
Strategic guidance for your Odoo system.

Maintenance
Reliable technical help, whenever you need it.
Contact Us
We'd love to hear from you! For quick support or inquiries, feel free to reach out to us directly on WhatsApp or visit our website. Our team is ready to assist you!

+92 310 5130679

odooelevate.odoo.com
Please log in to comment on this module