From 620d9f2e608d7aeaec100086cc85d64d7fd28a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 4 Apr 2016 16:32:09 +0200 Subject: [PATCH] [FIX] mrp: wrong return in override of action_scrap --- addons/mrp/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/stock.py b/addons/mrp/stock.py index 3b29e5e9b2d..bc19d3717eb 100644 --- a/addons/mrp/stock.py +++ b/addons/mrp/stock.py @@ -188,7 +188,7 @@ class StockMove(osv.osv): production_obj.signal_workflow(cr, uid, [prod_id], 'button_produce') if move.production_id.id: self.write(cr, uid, new_moves, {'production_id': move.production_id.id}, context=context) - res.append(new_moves) + res += new_moves return res def write(self, cr, uid, ids, vals, context=None):