From 7e733fcfaae559290ebd7b4371d67e38da0f5ee8 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Thu, 24 Apr 2014 11:17:31 +0200 Subject: [PATCH] [IMP] Do not check rule when cancelling procurement in propagation, works through stock move bzr revid: jco@openerp.com-20140424091731-3ptkt7qr26i9ofnf --- addons/stock/procurement.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/stock/procurement.py b/addons/stock/procurement.py index 0214eef6da1..88a02bc8efc 100644 --- a/addons/stock/procurement.py +++ b/addons/stock/procurement.py @@ -99,8 +99,7 @@ class procurement_order(osv.osv): #set the context for the propagation of the procurement cancelation ctx['cancel_procurement'] = True for procurement in self.browse(cr, uid, to_cancel_ids, context=ctx): - if procurement.rule_id and procurement.rule_id.propagate: - self.propagate_cancel(cr, uid, procurement, context=ctx) + self.propagate_cancel(cr, uid, procurement, context=ctx) return super(procurement_order, self).cancel(cr, uid, to_cancel_ids, context=ctx) def _find_parent_locations(self, cr, uid, procurement, context=None):