From 2e4b75868a8929ae34c05f9a9841f3caae5ac689 Mon Sep 17 00:00:00 2001 From: Thierry Ducrest Date: Fri, 20 Oct 2023 13:26:18 +0200 Subject: [PATCH] fixup! shopfloor_reception: Fix product_uom_qty on move line --- shopfloor_reception/services/reception.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shopfloor_reception/services/reception.py b/shopfloor_reception/services/reception.py index 03a22f66928..d245e93aa11 100644 --- a/shopfloor_reception/services/reception.py +++ b/shopfloor_reception/services/reception.py @@ -775,9 +775,10 @@ def _align_display_product_uom_qty(self, line, response): line_todo = line.product_uom_id._compute_quantity( remaining_todo, move_uom, round=False ) + # If more has been done keep the quantity to zero response["data"]["set_quantity"]["selected_move_line"][0][ "quantity" - ] = line_todo + ] = max(line_todo, 0) return response def _response_for_set_quantity(