-
-
Notifications
You must be signed in to change notification settings - Fork 180
[19.0][IMP] server_environment: Add separate config section "server_env" #249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lembregtse
wants to merge
113
commits into
OCA:19.0
Choose a base branch
from
dynapps:19.0-server_environment_new_config_section
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[19.0][IMP] server_environment: Add separate config section "server_env" #249
lembregtse
wants to merge
113
commits into
OCA:19.0
from
dynapps:19.0-server_environment_new_config_section
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(lp:c2c-addons/6.1 rev 11)
(lp:c2c-addons/6.1 rev 11.1.4)
(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.
nice with static files
* [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
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/
cyrilmanuel
approved these changes
Oct 8, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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