Skip to content

Commit

Permalink
[FIX] do not reserve done moves
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocorato committed Dec 9, 2024
1 parent d929136 commit 8dc3bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrp_production_reserved_purchase_qty/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _action_assign(self):
reserved_availability = {move: move.reserved_availability for move in self}
roundings = {move: move.product_id.uom_id.rounding for move in self}
move_line_vals_list = []
for move in self:
for move in self.filtered(lambda x: x.state != "done"):
rounding = roundings[move]
missing_reserved_uom_quantity = move.product_uom_qty - \
reserved_availability[move]
Expand Down

0 comments on commit 8dc3bea

Please sign in to comment.