[19.0][OU-ADD] crm: Migration scripts#5706
Open
eduezerouali-tecnativa wants to merge 1 commit into
Open
Conversation
797fb16 to
73525be
Compare
Contributor
|
/ocabot migration crm Depends on :
|
hbrunn
requested changes
Jun 9, 2026
|
|
||
| @openupgrade.migrate() | ||
| def migrate(env, version): | ||
| openupgrade.load_data(env, "crm", "19.0.1.9/noupdate_changes.xml") |
Member
There was a problem hiding this comment.
I think all those values are problematic. The writes on stage records will break if the user has deleted them in v18, and crm_pls_fields_param might have been customized.
This is one of the very few cases where I'd suggest to not load the file, but write code to do the updates conditionally. For the param something like ','.join(set(param.split(',')) | set('new', 'fields'))
Contributor
Author
There was a problem hiding this comment.
Done
| UPDATE crm_lead cl | ||
| SET won_status = CASE | ||
| WHEN cl.probability = 100 | ||
| AND EXISTS ( |
Contributor
Author
There was a problem hiding this comment.
Done
This was referenced Jun 9, 2026
73525be to
aa5b185
Compare
aa5b185 to
6648cdb
Compare
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.
cc @Tecnativa TT58614
@pedrobaeza