From 54ae65bc49e1ca211bfd02d70f537690d203f0e1 Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Tue, 28 Dec 2010 18:34:56 +0530 Subject: [PATCH] [FIX]procurement exception when there is stock lp bug: https://launchpad.net/bugs/691709 fixed bzr revid: ron@tinyerp.com-20101228130456-dhg25nxvc9igkigl --- addons/sale/sale.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/sale/sale.py b/addons/sale/sale.py index a789ad287f3..adbccc31819 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -735,11 +735,12 @@ class sale_order(osv.osv): proc_obj.write(cr, uid, [proc_id], {'product_qty': mov.product_qty, 'product_uos_qty': mov.product_uos_qty}) val = {} - for proc_id in proc_ids: - wf_service.trg_validate(uid, 'procurement.order', proc_id, 'button_confirm', cr) if picking_id: wf_service.trg_validate(uid, 'stock.picking', picking_id, 'button_confirm', cr) + + for proc_id in proc_ids: + wf_service.trg_validate(uid, 'procurement.order', proc_id, 'button_confirm', cr) if order.state == 'shipping_except': val['state'] = 'progress'