Skip to content

Commit

Permalink
fixup! shopfloor_reception: Fix product_uom_qty on move line
Browse files Browse the repository at this point in the history
  • Loading branch information
TDu committed Nov 7, 2023
1 parent d9f4059 commit 2506612
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions shopfloor_reception/services/reception.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
response["data"]["set_quantity"]["selected_move_line"][0][
"quantity"
] = line_todo
# If more has been done keep the quantity to zero
response["data"]["set_quantity"]["selected_move_line"][0]["quantity"] = max(
line_todo, 0
)
return response

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

0 comments on commit 2506612

Please sign in to comment.