From c8e4de7d99a0f1c2398cad695d1ced3fda3bcb22 Mon Sep 17 00:00:00 2001 From: Miku Laitinen Date: Sat, 25 Apr 2015 22:40:24 +0300 Subject: [PATCH] Multiple reservations can now be released at once. This fixes issue #50. --- stock_reserve/model/stock_reserve.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stock_reserve/model/stock_reserve.py b/stock_reserve/model/stock_reserve.py index aab360675fc2..4c77a20ea0b9 100644 --- a/stock_reserve/model/stock_reserve.py +++ b/stock_reserve/model/stock_reserve.py @@ -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