[16.0][FW] stock_dynamic_routing: Backports from 18.0#1153
Open
jbaudoux wants to merge 11 commits into
Open
Conversation
Contributor
Author
|
stock_storage_type failing tests should be solved by: shopfloor failing tests being tackled in v18.0 and will be backported |
Contributor
Author
|
shopfloor test partially fixed by: |
3921e2e to
6bee3a6
Compare
As the call to _check_entire_pack can be very slow, bypass it's call when pre-computing the dynamic routing pull rules as this is not needed for the computation and will be rollbacked. Also in case of source relocation, ensure to call _check_entire_pack on the recordset of moves and not on each move one by one. This is because _check_entire_pack triggers the check on the picking of the move and so you perform the same check for each move of the picking. When you reserve from source packages you have many moves inside a picking, the check is quite long and this change makes a important performance improvement. When the dynamic routing does not change the source location, do not write the same value on the move as this triggers many useless additional recomputations.
Fix [PERF] dynamic routing When there is no dynamic routing rule, the package putaway was not computed as we skip the result_package_id during the reservation. Now the putaway is also deferred and applied after the package is set on the stock move line.
…y a sublocation of the routing rule src location
…location dependency
Ensure the putaway is computed considering the package if any is set
Do not log that the initial demand has been updated when the move is split. The demand is still the same, it's just split in 2 moves.
When a confirmed move is split, do not call _action_confirm on the new move
Do not call _action_assign inside _action_assign but use super(). Add hook for relocate before updating next moves.
6bee3a6 to
c49bf07
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.
stock_dynamic_routing: keep source location stock-logistics-workflow#2106cc @lmignon @rousseldenis