From d69f71a1ae0b195fe4e5837459f058c8fa3c2f88 Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Thu, 4 Oct 2012 18:00:06 +0530 Subject: [PATCH] [FIX] procurement: if enough stock and no defined orderpoint, should not raise procurement exception. bzr revid: hmo@tinyerp.com-20121004123006-1txskppuycj1wkiw --- addons/procurement/procurement.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/procurement/procurement.py b/addons/procurement/procurement.py index 5f8cd3c0b56..c4e5dd36015 100644 --- a/addons/procurement/procurement.py +++ b/addons/procurement/procurement.py @@ -104,7 +104,7 @@ class procurement_order(osv.osv): " a make to order method."), 'note': fields.text('Note'), - 'message': fields.char('Latest error', size=124, help="Exception occurred while computing procurement orders."), #TOCHECK: is it need after OpenChatter ? + 'message': fields.char('Latest error', size=124, help="Exception occurred while computing procurement orders.") 'state': fields.selection([ ('draft','Draft'), ('cancel','Cancelled'), @@ -389,8 +389,6 @@ class procurement_order(osv.osv): order_point_id = self.pool.get('stock.warehouse.orderpoint').search(cr, uid, [('product_id', '=', procurement.product_id.id)], context=context) if not order_point_id and not ok: message = _("Not enough stock and no minimum orderpoint rule defined.") - elif not order_point_id: - message = _("No minimum orderpoint rule defined.") elif not ok: message = _("Not enough stock.")