From 0e9d77f5285396081701ec8802e9121ebf2e66fd Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Fri, 6 May 2011 12:22:08 +0530 Subject: [PATCH] [IMP]stock:entering a negative value give the warning bzr revid: ron@tinyerp.com-20110506065208-vdkuowmwy4iv1fxn --- addons/stock/wizard/stock_change_product_qty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_change_product_qty.py b/addons/stock/wizard/stock_change_product_qty.py index 6d0d2a32862..4f3146628cb 100644 --- a/addons/stock/wizard/stock_change_product_qty.py +++ b/addons/stock/wizard/stock_change_product_qty.py @@ -86,7 +86,7 @@ class stock_change_product_qty(osv.osv_memory): res_original = prod_obj_pool.browse(cr, uid, rec_id, context=context) for data in self.browse(cr, uid, ids, context=context): if data.new_quantity <= 0: - raise osv.except_osv(_('Warning!'), _('Please provide Proper Quantity !')) + raise osv.except_osv(_('Warning!'), _('Quantity cannot be negative or zero.')) inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: %s') % tools.ustr(res_original.name)}, context=context) line_data ={ 'inventory_id' : inventory_id,