mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX]rma_sale: Error when cancelling rma.order.line without sale order lines
This commit is contained in:
@@ -209,7 +209,7 @@ class RmaOrderLine(models.Model):
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user