[FIX] Fixed variable not defined.

bzr revid: tde@openerp.com-20120403125053-w3n50o0xjg4yoqxa
This commit is contained in:
Thibault Delavallée 2012-04-03 14:50:53 +02:00
parent 2441253c24
commit bfa67dc9d0
1 changed files with 2 additions and 2 deletions

View File

@ -2521,9 +2521,9 @@ class stock_move(osv.osv):
product_obj = self.pool.get('product.product')
for new_move in self.browse(cr, uid, res, context=context):
message = _("Product has been consumed with '%s' quantity.") % (product_qty)
message = _("Product has been consumed with '%s' quantity.") % (new_move.product_qty)
product_obj.message_append_note(cr, uid, [new_move.product_id.id], body=message, context=context)
self.action_done(cr, uid, res, context=context)
return res