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 AungKoKoLin1997 committed Aug 24, 2023
1 parent 583a8fa commit c9621d8
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 c9621d8

Please sign in to comment.