From bfa67dc9d0cc91e0c32c221c78307f992102313d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 3 Apr 2012 14:50:53 +0200 Subject: [PATCH] [FIX] Fixed variable not defined. bzr revid: tde@openerp.com-20120403125053-w3n50o0xjg4yoqxa --- addons/stock/stock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index c7cd06354ee..9cb42dec32e 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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