summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2016-04-04 16:32:09 +0200
committerThibault Delavallée <tde@openerp.com>2016-04-11 10:11:09 +0200
commit620d9f2e608d7aeaec100086cc85d64d7fd28a38 (patch)
treed6ded01dbf00e4ae7c87faa729e97023508d4fdc
parent2954df9e68f8ae6cac9468f8b18ef6113e6300cc (diff)
[FIX] mrp: wrong return in override of action_scrap
-rw-r--r--addons/mrp/stock.py2
1 files changed, 1 insertions, 1 deletions
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):