Skip to content

Commit

Permalink
shopfloor_reception: Split moves before posting
Browse files Browse the repository at this point in the history
  • Loading branch information
mmequignon committed Sep 4, 2023
1 parent fce2b7f commit 5f78001
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shopfloor_reception/services/reception.py
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,11 @@ def _post_shopfloor_created_line(self, selected_line):
)

def _auto_post_line(self, selected_line):
# If user only processed 1/5 and is the only one working on the move,
# then selected_line is the only one related to this move.
# In such case, we must ensure there's another move line with the remaining
# quantity to do, so selected_line is extracted in a new move as expected.
selected_line._split_partial_quantity()
new_move = selected_line.move_id.split_other_move_lines(
selected_line, intersection=True
)
Expand Down

0 comments on commit 5f78001

Please sign in to comment.