Skip to content

Commit

Permalink
Multiple reservations can now be released at once. This fixes issue O…
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaitinen authored and omar7r committed Nov 27, 2022
1 parent 3344e6e commit 0b9ee0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stock_reserve/model/stock_reserve.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ def release(self):
"""
Release moves from reservation
"""
move_recs = self.move_id
move_recs.action_cancel()
for rec in self:
move_recs = rec.move_id
move_recs.action_cancel()
return True

@api.model
Expand Down

0 comments on commit 0b9ee0b

Please sign in to comment.