From e440e402acbca8078d977634f31ed5e8c0ac205f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 22 Mar 2012 11:08:05 +0100 Subject: [PATCH] [FIX] Temporary fix for picking_id making crash the runbot. TODO: check were the error comes from. bzr revid: tde@openerp.com-20120322100805-ljqbieyqcg9spmhb --- addons/stock/stock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 9e0aece81b9..1b63a193414 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2410,7 +2410,8 @@ class stock_move(osv.osv): res += [new_move] product_obj = self.pool.get('product.product') for (id, name) in product_obj.name_get(cr, uid, [move.product_id.id]): - move.picking_id.scrap_send_note(quantity, name) + if move.picking_id: + move.picking_id.scrap_send_note(quantity, name, context=context) self.action_done(cr, uid, res, context=context) return res