[IMP] shopfloor_single_product_transfer: Implement allow_get_work#1188
Draft
lmignon wants to merge 54 commits into
Draft
[IMP] shopfloor_single_product_transfer: Implement allow_get_work#1188lmignon wants to merge 54 commits into
lmignon wants to merge 54 commits into
Conversation
lmignon
commented
Jun 17, 2026
- includes [16.0] [MIG] shopfloor_single_product_transfer: Backport from 18.0 #1181
- backport [18.0][IMP] shopfloor_single_product_transfer: Implement allow_get_work stock-logistics-shopfloor#117
Due to the way sf.app endpoints are registered if at install/uninstall you don't take care of refreshing routes you'll end up w/ non working services or stale entries in the route table.
Make sure when confirming a destination location the same location is being scanned otherwise ask for confirmation again.
Do not remove result_package_id in call of _set_quantity__by_location
when it was previously set by scanning a package
Remove user from backorder
…ckage is scanned which is not empty then it needs to be ensured that the package is set before the move is posted
…s are correctly set
Ensure pack moves are in the same transfer
Never update move destination
…ackage When the user sets a location for a move line, we used to go back to the select_product state. This is not ideal in the case where the no more product needs to be selected at the current location (no more pending move line at this location), as the user would have to select a new location to be able to select the next move line. Now, if the scenario is configured to forbid the creation of new move lines and there is no more pending move line at the current location, when the user sets a location for a move line, the next state will be select_location_or_package instead of select_product.
…on location Before this commit, when scanning a lot for a single product transfer, the system searched for the lot name without restricting it to the products available in the scanned location. This could lead to issues when there were multiple lots with the same name in different locations. With this commit, the search for the lot name is now restricted to the products available in the scanned location. This ensures that the correct lot is identified during the scanning process, even if there are duplicate lot names in different locations. (At least if products in the location doesn't share lot names, but at least it reduces the risk of picking the wrong lot)
…ocation_or_package
2 tasks
9789ddc to
24bafde
Compare
Draft
4 tasks
…lected line When validating the selected line, we currently support scanning the location, product lot and package.
…ack_first option When the `scan_location_or_pack_first` option is enabled at same time as `get_work`, the user is required to scan either a location or a package before being able to scan a product. This commit implements the necessary logic to support this option in the single product transfer work.
0d583ec to
8f34dd5
Compare
3 tasks
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.