Skip to content

Conversation

@lembregtse
Copy link

Since Odoo is now giving out warnings for unknown config options in the "options" section of the Odoo config, I propose the create a separate config section "server_env" for everybody that wants to use the odoo.conf file to specify this variable.

This is here waiting for #247

jgrandguillaume and others added 30 commits October 2, 2025 09:01
(lp:c2c-addons/6.1  rev 11)
(lp:c2c-addons/6.1  rev 28.1.1)
…t is the blessed target.

(lp:c2c-addons/6.1  rev 40.2.1)
(lp:c2c-addons/6.1  rev 45.1.4)
…TK client, because for 6.1 the web client is the blessed target.

(lp:c2c-addons/6.1  rev 116)
This fixes OCA/server-tools#125 because in some Ubuntu systems
lsb_release outputs to stderr as well as stdout. This message will be
printed to console, not logged nor shown among server infomation. That
way the message is lost and only pollutes unit tests output.
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
* [IMP] load server environment options from odoo rcfile

This allows delivering the code with default configuration options for
all environments in the server_environment_file module, but letting
the administrator override some configuration entries in the regular
odoo configuration file.

* server_environment_file: update README
To trigger rebuild following change in setup.py
qgroulard and others added 28 commits October 2, 2025 09:02
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-env-18.0/server-env-18.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-server_environment/
Currently translated at 100.0% (110 of 110 strings)

Translation: server-env-18.0/server-env-18.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-server_environment/it/
Without this change, the test will fail if we have queue_job installed (for example)
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-env-18.0/server-env-18.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-server_environment/
Currently translated at 100.0% (111 of 111 strings)

Translation: server-env-18.0/server-env-18.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-server_environment/it/
before this commit, default values were not populated
in other environments. The problem was only seen with
data_encryption which save all the values for all the environments.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-env-18.0/server-env-18.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-server_environment/
Currently translated at 100.0% (112 of 112 strings)

Translation: server-env-18.0/server-env-18.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-server_environment/it/
Currently translated at 100.0% (112 of 112 strings)

Translation: server-env-18.0/server-env-18.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-server_environment/it/
Currently translated at 100.0% (112 of 112 strings)

Translation: server-env-18.0/server-env-18.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-server_environment/fr/
In case a model was inheriting both server.env.mixin and server.env.techname.mixin
the value of _server_env_section_name_field was depending on the order
in which the mixins were inherited on that model.

If server.env.mixin was inherit first as in:
_name = "my.model"
_inherit = ["my.model", "server.env.mixin", "server.env.techname.mixin"]

Then the value of _server_env_section_name would be `name`

If server.env.techname.mixin was inherit first as in:
_name = "my.model"
_inherit = ["my.model", "server.env.techname.mixin", "server.env.mixin"]

Then the value of _server_env_section_name would be `tech_name`

To avoid this, since the server.env.techname.mixin changes an attribute of server.env.mixin,
server.env.techname.mixin must inherit the server.env.mixin.

With this, only one of the mixins needs to be inherited and there cannot
be any 'silent' issue, where the _server_env_section_name depends on the
order on which mixins are inherited.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-env-18.0/server-env-18.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-18-0/server-env-18-0-server_environment/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.