[FIX] MRP : Procurement can only be confirmed when qty>0.0
lp bug: https://launchpad.net/bugs/467880 fixed bzr revid: jvo@tinyerp.com-20091103044655-4y4qust3n1u2xdm0
This commit is contained in:
parent
80de59bebb
commit
7022a6016f
|
@ -978,6 +978,8 @@ class mrp_procurement(osv.osv):
|
|||
|
||||
def action_confirm(self, cr, uid, ids, context={}):
|
||||
for procurement in self.browse(cr, uid, ids):
|
||||
if procurement.product_qty <= 0.00:
|
||||
raise osv.except_osv(_('Data Insufficient !'), _('Please check the Quantity of Procurement Order(s), it should not be less than 1!'))
|
||||
if procurement.product_id.type in ('product', 'consu'):
|
||||
if not procurement.move_id:
|
||||
source = procurement.location_id.id
|
||||
|
|
Loading…
Reference in New Issue