[FIX] Temporary fix for picking_id making crash the runbot. TODO: check were the error comes from.

bzr revid: tde@openerp.com-20120322100805-ljqbieyqcg9spmhb
This commit is contained in:
Thibault Delavallée
2012-03-22 11:08:05 +01:00
parent 26b97bcd02
commit e440e402ac
+2 -1
View File
@@ -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