[FIX]:lp-641084 Warning message wrongly indication

bzr revid: ksa@tinyerp.co.in-20101116102713-8883bt0dch5641hu
This commit is contained in:
ksa (Open ERP) 2010-11-16 15:57:13 +05:30
parent 01c15d9cce
commit 1b74ce2567
1 changed files with 1 additions and 1 deletions

View File

@ -1610,7 +1610,7 @@ class stock_move(osv.osv):
warning = {}
if (location.usage == 'internal') and (product_qty > (prodlot.stock_available or 0.0)):
warning = {
'title': _('Bad Lot Assignation !'),
'title': _('Insufficient Stock in Lot !'),
'message': _('You are moving %.2f products but only %.2f available in this lot.') % (product_qty, prodlot.stock_available or 0.0)
}
return {'warning': warning}