[IMP] stock: update warning message for serial number

bzr revid: cha@tinyerp.com-20120921100850-bvrgytvux9650tzp
This commit is contained in:
Ajay Chauhan (OpenERP) 2012-09-21 15:38:50 +05:30
parent 79a982dffe
commit 2ad8039711
1 changed files with 2 additions and 2 deletions

View File

@ -1836,8 +1836,8 @@ class stock_move(osv.osv):
warning = {}
if (location.usage == 'internal') and (product_qty > (amount_actual or 0.0)):
warning = {
'title': _('Insufficient Stock in Serial Number !'),
'message': _('You are moving %.2f %s products but only %.2f %s available in this serial number.') % (product_qty, uom.name, amount_actual, uom.name)
'title': _('Insufficient Stock for Serial Number !'),
'message': _('You are moving %.2f %s products but only %.2f %s available for this serial number.') % (product_qty, uom.name, amount_actual, uom.name)
}
return {'warning': warning}