[18.0][FIX] mrp: location_dest_id with the MRP module installed. - #5977
Open
angelgarciadelachica wants to merge 1 commit into
Open
[18.0][FIX] mrp: location_dest_id with the MRP module installed.#5977angelgarciadelachica wants to merge 1 commit into
angelgarciadelachica wants to merge 1 commit into
Conversation
Member
|
If the moves were generated in 17, they should contain already the correct destination location. Can you point where in OpenUpgrade they are being changed back to WH/Stock? |
Author
|
Thanks for your reply! :-) In the Stock pre-migration script:
|
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.
Summary
This PR fixes the pre-migration script for the MRP module in version 18 by adjusting the calculation of
location_dest_idto consider inheritance and the custom logic applied by the Manufacturing (MRP) module.Problem Description
The current pre-migration script for the stock module to v18 renames
location_dest_idtolocation_final_idand recalculateslocation_dest_idusing the standardstock.movequeries (based on_compute_location_dest_id()).However, this logic is incomplete when the mrp module is installed, since this module overrides the
_compute_location_dest_id()method. Currently, there is no mechanism in place to handle this scenario, resulting in an incorrectlocation_dest_idin stock movements generated from a production order.To Reproduce
location_dest_idhas not been migrated correctly. The expected behavior, following the logic for creating an MO in v18, should be different:@HaraldPanten @ValentinVinagre
I-8773