[IMP] stock: update warning message for stock in serial number

bzr revid: cha@tinyerp.com-20120917062326-ony3gx9k2o871kq3
This commit is contained in:
Ajay Chauhan (OpenERP)
2012-09-17 11:53:26 +05:30
parent cd644106f3
commit a49acd9fca
+2 -2
View File
@@ -1804,8 +1804,8 @@ class stock_move(osv.osv):
warning = {}
if (location.usage == 'internal') and (product_qty > (amount_actual or 0.0)):
warning = {
'title': _('Insufficient Stock in Lot !'),
'message': _('You are moving %.2f %s products but only %.2f %s available in this lot.') % (product_qty, uom.name, amount_actual, uom.name)
'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)
}
return {'warning': warning}