[IMP] Do not check rule when cancelling procurement in propagation, works through stock move

bzr revid: jco@openerp.com-20140424091731-3ptkt7qr26i9ofnf
This commit is contained in:
Josse Colpaert 2014-04-24 11:17:31 +02:00
parent 2b3ec22a26
commit 7e733fcfaa
1 changed files with 1 additions and 2 deletions

View File

@ -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):