[IMP] rma_sale: button cancel

This commit is contained in:
DavidJForgeFlow
2023-02-15 08:51:46 +01:00
parent 79e9addf6a
commit 9d89891c8c

View File

@@ -207,6 +207,12 @@ class RmaOrderLine(models.Model):
result["domain"] = [("id", "in", order_ids)]
return result
def action_rma_cancel(self):
res = super().action_rma_cancel()
for line in self:
line.sale_line_ids.mapped("order_id").action_cancel()
return res
def _get_rma_sold_qty(self):
self.ensure_one()
qty = 0.0