| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 35 |
| Technical Name |
restrict_debug_group |
| License | LGPL-3 |
| Website | https://www.odoomatrix.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 35 |
| Technical Name |
restrict_debug_group |
| License | LGPL-3 |
| Website | https://www.odoomatrix.com |
Restrict Debug Mode to Users
Restrict debug mode access on a per-user basis by managing group membership. Only authorized users can enable Developer Mode (debug, assets, tests) by adding or removing them from the security group.
✨ What it does
- ✅Creates an Allow Developer Mode security group for user-wise access control.
- ✅Grant or revoke debug access by simply adding/removing users from the group.
- ✅Only group members can enable debug mode; non-members are blocked even via URL manipulation.
- ✅Provides complete control over who can access debug features in your Odoo instance.
🛠 How it works
- Module checks each user's group membership when they attempt to enable debug mode.
- Users without the Allow Developer Mode group are automatically blocked from activating debug.
- Works at the server level, preventing both UI-based and URL-based debug activation (
?debug=1). - Control is granular: manage access user-by-user through group assignment.
Covers all debug modes: 1, assets, tests, and combinations.
⚙️ Configuration: User-wise Access Control
- Install the module from Apps.
- Go to Settings → Users & Companies → Users.
- Open the user you want to grant/revoke debug access.
- In the Access Rights tab, add or remove the Allow Developer Mode group.
- Save. That user can now enable/disable debug mode based on their group membership.
Quick Tip: You can also manage this from Settings → Users & Companies → Groups → Allow Developer Mode to see all users with debug access at once.
🔒 Why user-wise control matters
Fine-grained access control means you can grant debug privileges to specific developers, administrators, or support staff without giving blanket access to all users. Remove users from the group instantly if they leave the team or no longer need debug access. The server-side check ensures the restriction is enforced consistently, regardless of how users try to activate debug mode.
📝 Important Notes
- User-level control: Access is managed per user, not per role. Each user must be explicitly added to or removed from the group.
- Instant effect: Changes to group membership take effect immediately on the next debug activation attempt.
- Complete restriction: Users without the group cannot enable or access debug mode through any method.
🏢 OdooMatrix
OdooMatrix specializes in delivering high-quality Odoo solutions and custom modules to enhance your business operations. We provide expert development, implementation, and support services for Odoo ERP systems.
Please log in to comment on this module