[FIX] I have improve the error message in procurement

lp bug: https://launchpad.net/bugs/1005987 fixed

bzr revid: rmu@tinyerp.com-20120530060548-ijkmbmufuchofvax
This commit is contained in:
Alexis de Lattre 2012-05-30 11:35:48 +05:30 committed by Ravish Murari (OpenERP)
parent 35962e14c7
commit cf3089812c
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ class procurement_order(osv.osv):
for procurement in self.browse(cr, uid, ids, context=context):
if procurement.product_qty <= 0.00:
raise osv.except_osv(_('Data Insufficient !'),
_('Please check the quantity in procurement order(s), it should not be 0 or less!'))
_('Please check the quantity in procurement order(s) for the product "%s", it should not be 0 or less!' % procurement.product_id.name))
if procurement.product_id.type in ('product', 'consu'):
if not procurement.move_id:
source = procurement.location_id.id