[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:
parent
2b3ec22a26
commit
7e733fcfaa
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue