diff --git a/shopfloor_reception/services/reception.py b/shopfloor_reception/services/reception.py index 12b9a0ad747..286f4a2abc3 100644 --- a/shopfloor_reception/services/reception.py +++ b/shopfloor_reception/services/reception.py @@ -257,12 +257,7 @@ def _scan_line__find_or_create_line(self, picking, move, qty_done=1): ) ) if not line: - qty_todo_remaining = max( - 0, - move.product_uom_qty - - sum(move.move_line_ids.mapped("product_uom_qty")), - ) - values = move._prepare_move_line_vals(quantity=qty_todo_remaining) + values = move._prepare_move_line_vals() line = self.env["stock.move.line"].create(values) return self._scan_line__assign_user(picking, line, qty_done) @@ -1245,6 +1240,7 @@ def process_without_pack(self, picking_id, selected_line_id, quantity): return self._response_for_set_destination(picking, selected_line) def _post_line(self, selected_line): + selected_line.product_uom_qty = selected_line.qty_done if ( selected_line.picking_id.is_shopfloor_created and self.work.menu.allow_return