Skip to content

Commit

Permalink
location transfer: fix issue if move lines have different src locations
Browse files Browse the repository at this point in the history
  • Loading branch information
sebalix committed Aug 17, 2020
1 parent 83f8687 commit 4e2a305
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shopfloor/services/location_content_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ def _next_content(self, pickings):
return next_content

def _router_single_or_all_destination(self, pickings, message=None):
if len(pickings.mapped("move_line_ids.location_dest_id")) == 1:
location_dest = pickings.mapped("move_line_ids.location_dest_id")
location_src = pickings.mapped("move_line_ids.location_id")
if len(location_dest) == len(location_src) == 1:
return self._response_for_scan_destination_all(pickings, message=message)
else:
return self._response_for_start_single(pickings, message=message)
Expand Down

0 comments on commit 4e2a305

Please sign in to comment.