Carrier configuration with server_environment
This module allows to configure carrier informations using the server_environment mechanism: you can then have different servers for the production and the test environment.
auto_awesome What this module does
AI-generated from the code · Odoo 12.0Lets you store carrier account credentials (account, password, file format) in server environment configuration files instead of the Odoo database, so production and test servers can use different carrier settings.
This module extends the carrier account model so its sensitive connection details can be kept outside the database, in configuration files read by the server environment mechanism.
- The fields
account,passwordandfile_formatoncarrier.accountare declared as environment-driven, meaning their values are taken from the server configuration rather than typed in Odoo. - The configuration section used is named
carrier_account, so each server (production, test, staging) can supply its own values for the same carrier account. - It builds on the delivery carrier label features, so carriers that generate shipping labels can have their credentials managed per environment.
There are no new menus, buttons, reports or scheduled actions in the code. The change is a configuration behaviour: users with the right access can still see carrier accounts, but the account, password and file format values come from the server's configuration files. This avoids duplicating or manually re-entering carrier credentials when moving between environments, and keeps secrets out of the database and out of exports or backups.
Models and fields (1)
- carrier.account · new model
Text generated by AI (DeepSeek) from reading the Odoo 12.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: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/server-env.
terminal Installation and usage
OCA documentation · Odoo 12.0Configuration
Source · Odoo 12.0With this module installed, the delivery carrier are configured in the server_environment_files module (which is a module you should provide, see the documentation of server_environment for more information).
In the configuration file of each environment, you may first use the section [carrier_account].
Then for each server, you can define additional values or override the default values with a section named [carrier_account.resource_name] where "resource_name" is the name of the server.
Example of config file:
[carrier_account]
# here is the default format
file_format = 'ZPL'
[carrier_account.mycarrier]
name = mycarrier
account = 587
password = 123promenons-nous-dans-les-bois456cueillir-des-saucisses
[carrier_account.mycarrier2]
name = mycarrier2
account = 666
password = wazaaaaa
file_format = PDFUsage
Source · Odoo 12.0Once configured, Odoo will read the carrier values from the configuration file related to each environment defined in the main Odoo file or in carrier.account model.
No verified information in OCA: Installation.
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.