Skip to content

[IMP] shopfloor_single_product_transfer: Implement allow_get_work#1188

Draft
lmignon wants to merge 54 commits into
OCA:16.0from
acsone:16.0-shopfloor-single_product_transfer_get-work-lmi
Draft

[IMP] shopfloor_single_product_transfer: Implement allow_get_work#1188
lmignon wants to merge 54 commits into
OCA:16.0from
acsone:16.0-shopfloor-single_product_transfer_get-work-lmi

Conversation

mmequignon and others added 30 commits June 17, 2026 08:45
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
oca-ci and others added 15 commits June 17, 2026 08:45
Ensure pack moves are in the same transfer
…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)
lmignon added 6 commits June 22, 2026 14:52
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:shopfloor_single_product_transfer Module shopfloor_single_product_transfer series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants