Skip to content

Commit

Permalink
Merge pull request #4705 from em230418/16.0-stock_no_cancel
Browse files Browse the repository at this point in the history
[16.0][OU-FIX] stock: do not try to compute quantity_done for canceled stock moves
  • Loading branch information
pedrobaeza authored Dec 26, 2024
2 parents 0df0cf2 + 6d73b70 commit c31d4d6
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 c31d4d6

Please sign in to comment.