Server Environment Data Encryption
This module changes a little the behavior of server_environment modules. When Odoo does not find the value of the field in the configuration file, it will fallback on a Odoo encrypted field instead. Also it allows you to configure the environment dependent fields for all your environments from the production server.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets administrators store environment-specific configuration values (like API keys or credentials) in encrypted form inside Odoo, and edit them for each environment from the production server.
This module extends the server environment feature so that when a configuration value is not found in the Odoo configuration file, Odoo falls back to a value stored encrypted in the database instead.
On any form that uses environment-dependent fields, the module adds a banner and buttons to switch between environments. Buttons such as "Define values for <environment>" open the same record in a form where you can enter the values for that environment. Values are saved encrypted, and the form fields are made read-only when you are viewing an environment other than the one currently running.
A warning banner appears if the encryption key for the current environment is missing; in that case the module has no effect and the normal configuration file behaviour is used. The module also requires the running_env entry to be defined in the Odoo configuration file, otherwise it raises an error.
It works on the server.env.mixin abstract model, so it applies to all models that use server environment fields. It relies on the encrypted.data model to read and write the encrypted values.
Depends on
Models and fields (1)
- server.env.mixin · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 5 confirmed, 4 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/server-env.
terminal Installation and usage
OCA documentation · Odoo 18.0Configuration
Source · Odoo 18.0In order to use this module properly, each environment should have their own encryption key and the production environment should have the keys of all environments.
Example : Development environment :
[options] running_env=dev encryption_key_dev=XXX
Pre-production environment :
[options] running_env=preprod encryption_key_preprod=YYY
Production environment :
[options] running_env=prod encryption_key_dev=XXX encryption_key_preprod=YYY encryption_key_prod=ZZZ
No verified information in OCA: Installation, Usage.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.