Skip to content

Commit

Permalink
[OU-FIX] stock: do not try to compute quantity_done for canceled stoc…
Browse files Browse the repository at this point in the history
  • Loading branch information
em230418 committed Dec 25, 2024
1 parent 0df0cf2 commit 6d73b70
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def _complete_stock_move_quantity_done_with_orm(env):
"""
SELECT move_id
FROM stock_move_line
WHERE state != 'cancel'
GROUP BY move_id
HAVING COUNT(DISTINCT product_uom_id) > 1
AND SUM(qty_done) <> 0
Expand Down

0 comments on commit 6d73b70

Please sign in to comment.