| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 457 |
| Technical Name |
production_mode |
| License | LGPL-3 |
| Website | https://nextpagetechnologies.com |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 457 |
| Technical Name |
production_mode |
| License | LGPL-3 |
| Website | https://nextpagetechnologies.com |
| Versions | 18.0 19.0 |
Production Mode
Restrict debug access and hide technical error details for selected users in live Odoo databases.
What It Does
User Group Based
Restrictions apply to users in the Production Mode Restricted group after the global setting is enabled.
Debug Access
Developer mode is blocked for restricted users, and debug flags are removed from their sessions.
Error Display
Unexpected technical errors are shown as a generic dialog. UserError and ValidationError messages remain visible.
Database Routes
Public database manager actions such as create, drop, backup, restore, and change password are blocked when production mode is detected.
Screenshots
Configuration
- Install the Production Mode module.
- Open Settings and enable the Production Mode option.
- Add selected users to the Production Mode Restricted group.
- Log in as a restricted user and verify that debug tools are unavailable.
Limitations
This module does not replace Odoo access rights, database backups, reverse proxy security, server monitoring, or log management. Administrators may still see technical details in server logs.
Privacy
This module does not send customer data to any external service.
Production Mode
Production Mode adds a restriction layer for live Odoo databases. It is meant for installations where selected users should not see developer tools, debug mode, or technical error details in the web client.
Features
- Enable or disable the module from General Settings.
- Apply restrictions only to users in the Production Mode Restricted group.
- Block developer mode for restricted users.
- Remove debug flags from restricted user sessions.
- Hide backend developer controls.
- Show a generic administrator message for unexpected technical errors.
- Keep UserError and ValidationError messages visible.
- Block public database manager routes when production mode is active.
Configuration
- Install the Production Mode module.
- Go to Settings > Production Mode.
- Enable the Production Mode option.
- Open the user records that should be restricted.
- Add those users to the Production Mode Restricted group.
How It Works
The global setting is stored in ir.config_parameter using the key production_mode.enabled. A user is restricted only when this setting is enabled and the user belongs to the Production Mode Restricted group.
For restricted users, the module clears debug mode from the session and removes debug parameters from backend session data. The backend assets hide developer controls and show a generic dialog for unexpected server or client errors. Functional business errors remain visible.
Database Protection
When production mode is detected for a database, public database manager routes such as create, duplicate, drop, backup, restore, and change password are blocked.
Limitations
This module does not replace Odoo access rights, database backups, reverse proxy security, server monitoring, or log management. Technical details may still be available in server logs for administrators.
Data Privacy
This module does not collect, transmit, or process customer data through any external service.
Please log in to comment on this module