diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 5e7658b69eb..0288081148d 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -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