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 aliciagaarzo committed Apr 17, 2023
1 parent aa0733d commit 8423886
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 8423886

Please sign in to comment.