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 hzh0292 committed Jun 28, 2019
1 parent 4d6aae4 commit d2082f7
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 d2082f7

Please sign in to comment.