[IMP] rma_repair: button cancel

This commit is contained in:
DavidJForgeFlow
2023-02-15 09:13:18 +01:00
committed by JasminSForgeFlow
parent ac3af6bc36
commit 540507d717

View File

@@ -127,6 +127,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