Skip to content

Commit 561e64c

Browse files
[FIX] shopfloor_reception: Unmark as picked on partial picking
1 parent 43e3161 commit 561e64c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

shopfloor_reception/services/reception.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1247,13 +1247,16 @@ def _auto_post_line(self, selected_line):
12471247
# then selected_line is the only one related to this move.
12481248
# In such case, we must ensure there's another move line with the remaining
12491249
# quantity to do, so selected_line is extracted in a new move as expected.
1250-
selected_line._split_partial_quantity()
1250+
new_move_line = selected_line._split_partial_quantity()
12511251
new_move = selected_line.move_id.split_other_move_lines(
12521252
selected_line, intersection=True
12531253
)
12541254
if new_move:
12551255
# A new move is created in case of partial quantity
12561256
new_move.extract_and_action_done()
1257+
stock = self._actions_for("stock")
1258+
stock.unmark_move_line_as_picked(new_move_line)
1259+
new_move_line.location_dest_id = new_move_line.move_id.location_dest_id
12571260
return
12581261
# In case of full quantity, post the initial move
12591262
selected_line.move_id.extract_and_action_done()

0 commit comments

Comments
 (0)