OdooWiki OCA HUB

Server Environment Ir Config Parameter

server_environment_ir_config_parameter folder_open OCA/server-env open_in_new
Uncategorised License: AGPL-3

Override System Parameters from server environment file.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets Odoo system parameters be driven by the server configuration file instead of the database. Parameters defined there are marked as environment-defined and become read-only in the interface.

This module connects Odoo's System Parameters screen with the server environment configuration file (odoo.cfg). When a parameter key is also present in that file, Odoo treats the file as the source of truth.

What users see: - On the System Parameters list and form, a new checkbox column/field "Defined by environment" shows whether a parameter is controlled by the server file. - For those parameters, the Key and Value fields become read-only, so they cannot be changed by mistake from the interface.

Automatic behaviour: - When a parameter is read, if the server file defines it, the file value is used and the database is updated to match. - If the file defines the key but with an empty value, an error is raised saying the key is empty in the server environment file. - When a parameter is created or edited, if its key is defined in the server file, the value is forced to the file value.

This affects the ir.config_parameter model and the standard System Parameters screens. It is meant for administrators who want to keep sensitive or deployment-specific settings under server control rather than in the database.

Models and fields (1)
  • ir.config_parameter · extends an existing modelis_environment (Defined by environment)

Text generated by AI (DeepSeek) from reading the Odoo 19.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/server-env.

terminal Installation and usage

OCA documentation · Odoo 19.0

To configure this module, you need to add a section [ir.config_parameter] to you server_environment_files configurations, where the keys are the same as would normally be set in the Systems Parameter Odoo menu.

When first using a value, the system will read it from the configuration file and override any value that would be present in the database, so the configuration file has precedence.

When creating or modifying values that are in the configuration file, the module replace changes, enforcing the configuration value.

For example you can use this module in combination with web_environment_ribbon:

[ir.config_parameter]
ribbon.name=DEV

Before using this module, you must be familiar with the server_environment module.

No verified information in OCA: Installation.

info

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.