Merged
Conversation
7751c86 to
1c08288
Compare
3f076d6 to
70446a0
Compare
24d38f6 to
bee84ad
Compare
pedrobaeza
reviewed
Jun 29, 2021
bee84ad to
f043669
Compare
pedrobaeza
reviewed
Sep 28, 2021
addons/stock_dropshipping/migrations/13.0.1.0/post-migration.py
Outdated
Show resolved
Hide resolved
Contributor
Author
|
The general strategy here is similar to https://github.com/OCA/OpenUpgrade/blob/13.0/addons/stock/migrations/13.0.1.1/post-migration.py#L234, which it's to generate dropship sequences for each company an adapt existing models that point to default sequence to the new sequence, and similar with dropship picking types and stock rules that are dependent of those sequences. |
f043669 to
b0706d8
Compare
Member
|
I have rebased, and added on top these changes:
This depends on OCA/openupgradelib#246, but I have pushed an extra commit that should be removed when merged for testing if all goes good. I think this strategy can be used also in @Tecnativa TT28115 |
b0706d8 to
4b9d853
Compare
- Don't change current preferences on picking type code/sequence prefix. - Keep curent record for first company and duplicate it for the rest. - Save mapping of records for later references. - Use smart foreign key reference replacing for extra created records. TT28115
We use the existing sequences for detecting this code.
81d2b53 to
7be23b7
Compare
pedrobaeza
approved these changes
Oct 6, 2021
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.
Migration of stock_dropshipping.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr