[19.0][FWP] server_environment: Preserve not env managed data - #288
Merged
Conversation
Helper function typically used for hooks and migration scripts. Restores database values for fields transitioning to 'server env managed'. When a field is defined as managed by the server environment, Odoo ignores the value stored in the database, prioritizing the environment configuration instead. If no environment configuration exists, the field may effectively lose its previous value. This method forces to 'persist' these values if they are not explicitly overridden by the current environment configuration.
yankinmax
force-pushed
the
19.0-fwp-server_env_preserve
branch
from
August 24, 2026 06:26
79b00df to
9fc049b
Compare
yankinmax
commented
Aug 24, 2026
yankinmax
commented
Aug 24, 2026
3 tasks
…cation" To preserve the value of field "smtp_authentication" if we don't set it from the environment. Which may happen to anyone updating the sources of mail_environment for its project.
yankinmax
force-pushed
the
19.0-fwp-server_env_preserve
branch
from
August 31, 2026 06:22
9fc049b to
c025687
Compare
simahawk
approved these changes
Aug 31, 2026
ivantodorovich
approved these changes
Sep 1, 2026
Preserve default values already stored in the DB.
Contributor
Author
|
Hello @simahawk your commits are cherry-picked from the: |
yankinmax
force-pushed
the
19.0-fwp-server_env_preserve
branch
from
September 7, 2026 15:05
da15709 to
e9bab93
Compare
yankinmax
force-pushed
the
19.0-fwp-server_env_preserve
branch
from
September 7, 2026 15:09
e9bab93 to
27d60b4
Compare
Contributor
|
/ocabot merge nobump |
Contributor
|
This PR looks fantastic, let's merge it! |
Contributor
|
Congratulations, your PR was merged at 120f3ea. Thanks a lot for contributing to OCA. ❤️ |
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
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.
Forward-port of: