[FIX]: mrp: Fixed problem on producing product
bzr revid: rpa@tinyerp.com-20111114093447-jmt5tuvljn1ep627
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user