Skip to content

Commit 2506612

Browse files
committed
fixup! shopfloor_reception: Fix product_uom_qty on move line
1 parent d9f4059 commit 2506612

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: shopfloor_reception/services/reception.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -775,9 +775,10 @@ def _align_display_product_uom_qty(self, line, response):
775775
line_todo = line.product_uom_id._compute_quantity(
776776
remaining_todo, move_uom, round=False
777777
)
778-
response["data"]["set_quantity"]["selected_move_line"][0][
779-
"quantity"
780-
] = line_todo
778+
# If more has been done keep the quantity to zero
779+
response["data"]["set_quantity"]["selected_move_line"][0]["quantity"] = max(
780+
line_todo, 0
781+
)
781782
return response
782783

783784
def _before_state__set_quantity(self, picking, line, message=None):

0 commit comments

Comments
 (0)