Skip to content
Snippets Groups Projects
Commit 39c5d0f3 authored by Arnold Moyaux's avatar Arnold Moyaux
Browse files

[IMP] mrp_subcontracting: cancel subcontract order

A subcontracting receipt cancellation should cancel the
subcontracting order and the associated document.
parent a3aeabd4
Branches
Tags
No related merge requests found
......@@ -32,6 +32,12 @@ class StockPicking(models.Model):
# -------------------------------------------------------------------------
# Action methods
# -------------------------------------------------------------------------
def action_cancel(self):
for picking in self:
picking._get_subcontracted_productions()._action_cancel()
return super(StockPicking, self).action_cancel()
def action_done(self):
# action_done with an extra move will trigger two methods that
# create/modify a subcontracting order, _action_confirm and a write on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment