File tree 1 file changed +4
-1
lines changed
shopfloor_reception/services
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1247,13 +1247,16 @@ def _auto_post_line(self, selected_line):
1247
1247
# then selected_line is the only one related to this move.
1248
1248
# In such case, we must ensure there's another move line with the remaining
1249
1249
# 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 ()
1251
1251
new_move = selected_line .move_id .split_other_move_lines (
1252
1252
selected_line , intersection = True
1253
1253
)
1254
1254
if new_move :
1255
1255
# A new move is created in case of partial quantity
1256
1256
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
1257
1260
return
1258
1261
# In case of full quantity, post the initial move
1259
1262
selected_line .move_id .extract_and_action_done ()
You can’t perform that action at this time.
0 commit comments