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 Oct 20, 2023
1 parent 01ad608 commit 2e4b758
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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
)
# 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(
Expand Down

0 comments on commit 2e4b758

Please sign in to comment.