From 28421e1e852bda16aece42755e75ba4a68b3a3c5 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Tue, 19 Aug 2014 12:26:05 +0200 Subject: [PATCH] [IMP] Make sure normal products will still work --- addons/mrp/stock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mrp/stock.py b/addons/mrp/stock.py index e3ac753646b..fb5a3bf1ccd 100644 --- a/addons/mrp/stock.py +++ b/addons/mrp/stock.py @@ -131,8 +131,8 @@ class StockMove(osv.osv): #delete the move with original product which is not relevant anymore move_obj.unlink(cr, SUPERUSER_ID, [move.id], context=context) - #return list of newly created move or the move id otherwise - return processed_ids or [] + #return list of newly created move or the move id otherwise, unless there is no move anymore + return processed_ids or (not bis and [move.id]) or [] def action_confirm(self, cr, uid, ids, context=None): move_ids = []