[FIX]: mrp: Fixed problem on producing product

bzr revid: rpa@tinyerp.com-20111114093447-jmt5tuvljn1ep627
This commit is contained in:
Rucha (Open ERP) 2011-11-14 15:04:47 +05:30
parent f90e5ce97b
commit c4186fcbde
1 changed files with 1 additions and 1 deletions

View File

@ -731,7 +731,7 @@ class mrp_production(osv.osv):
# if qtys we have to consume is more than qtys available to consume
prod_name = scheduled.product_id.name_get()[0][1]
raise osv.except_osv(_('Warning!'), _('You are going to consume total %s quantities of "%s".\nBut you can consume upto total %s quantities.' % (qty, prod_name, qty_avail)))
if qty < 0.0:
if qty <= 0.0:
# we already have more qtys consumed than we need
continue