From f2c34a3bb3d38a48be64fc9a65b39533334474d9 Mon Sep 17 00:00:00 2001 From: DavidJForgeFlow Date: Wed, 15 Feb 2023 09:13:18 +0100 Subject: [PATCH] [IMP] rma_repair: button cancel --- rma_repair/models/rma_order_line.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rma_repair/models/rma_order_line.py b/rma_repair/models/rma_order_line.py index c7255c99..c43e0b12 100644 --- a/rma_repair/models/rma_order_line.py +++ b/rma_repair/models/rma_order_line.py @@ -130,6 +130,12 @@ class RmaOrderLine(models.Model): result["res_id"] = repair_ids[0] return result + def action_rma_cancel(self): + res = super().action_rma_cancel() + for line in self: + line.repair_ids.action_repair_cancel() + return res + def _get_rma_repaired_qty(self): self.ensure_one() qty = 0.0