From 561e64ccfd076c582364d5f015810706175b759a Mon Sep 17 00:00:00 2001 From: Michael Tietz Date: Thu, 14 Sep 2023 17:57:40 +0200 Subject: [PATCH] [FIX] shopfloor_reception: Unmark as picked on partial picking --- shopfloor_reception/services/reception.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shopfloor_reception/services/reception.py b/shopfloor_reception/services/reception.py index f3fedaca4bc..dc6ed860de6 100644 --- a/shopfloor_reception/services/reception.py +++ b/shopfloor_reception/services/reception.py @@ -1247,13 +1247,16 @@ def _auto_post_line(self, selected_line): # 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_line = selected_line._split_partial_quantity() new_move = selected_line.move_id.split_other_move_lines( selected_line, intersection=True ) if new_move: # A new move is created in case of partial quantity new_move.extract_and_action_done() + stock = self._actions_for("stock") + stock.unmark_move_line_as_picked(new_move_line) + new_move_line.location_dest_id = new_move_line.move_id.location_dest_id return # In case of full quantity, post the initial move selected_line.move_id.extract_and_action_done()