[IMP]stock:entering a negative value give the warning

bzr revid: ron@tinyerp.com-20110506065208-vdkuowmwy4iv1fxn
This commit is contained in:
ron@tinyerp.com
2011-05-06 12:22:08 +05:30
parent 10c8c4cf19
commit 0e9d77f528
@@ -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,