Skip to content

Commit

Permalink
[FIX]rma_sale: Error when cancelling rma.order.line without sale orde…
Browse files Browse the repository at this point in the history
…r lines
  • Loading branch information
manuelregidor authored and AaronHForgeFlow committed Feb 27, 2024
1 parent 58349e4 commit 3c0e9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rma_sale/models/rma_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def action_view_origin_sale_order(self):

def action_rma_cancel(self):
res = super().action_rma_cancel()
for line in self:
for line in self.filtered("sale_line_ids"):
line.sale_line_ids.mapped("order_id").action_cancel()
return res

Expand Down

0 comments on commit 3c0e9c4

Please sign in to comment.