Skip to content

Commit

Permalink
fixup! 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 cbdc725 commit 1afa337
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 @@ -1266,7 +1266,8 @@ def _auto_post_line(self, selected_line):
# Always keep the quantity todo at zero, the same is done
# in Odoo when move lines are created manually (setting)
lines_with_qty_todo = selected_line.move_id.move_line_ids.filtered(
"product_uom_qty"
lambda line: line.state not in ("cancel", "done")
and line.product_uom_qty > 0
)
if lines_with_qty_todo:
lines_with_qty_todo.product_uom_qty = 0
Expand Down

0 comments on commit 1afa337

Please sign in to comment.