From a4a742e1a345082ca92e391b2344aba988c184f7 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Mon, 19 Aug 2013 12:46:57 +0200 Subject: [PATCH] [IMP] Procurement should go to exception when no supplier bzr revid: jco@openerp.com-20130819104657-6ee5gmn9v7vxqi2c --- addons/purchase/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 3e2446568af..5f4471ce408 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -1226,7 +1226,7 @@ class procurement_order(osv.osv): res_id = procurement.move_dest_id and procurement.move_dest_id.id or False partner = procurement.product_id.seller_id # Taken Main Supplier of Product of Procurement. if not partner: - procurement.write({'message': _('There is no supplier associated to product %s') % (procurement.product_id.name)}) + procurement.write({'message': _('There is no supplier associated to product %s') % (procurement.product_id.name), 'state': 'exception'}) else: seller_qty = procurement.product_id.seller_qty partner_id = partner.id