From cd5e20e58482ab6d4e9095d9f94ccdf4e8ab5f01 Mon Sep 17 00:00:00 2001 From: DavidJForgeFlow Date: Mon, 11 Jul 2022 10:17:38 +0200 Subject: [PATCH] [15.0][FIX] rma_sale: fixup of procurement --- rma_sale/models/procurement.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rma_sale/models/procurement.py b/rma_sale/models/procurement.py index 1b3248ee..f4a21038 100644 --- a/rma_sale/models/procurement.py +++ b/rma_sale/models/procurement.py @@ -30,6 +30,7 @@ class StockRule(models.Model): ) if "rma_line_id" in values: line = values.get("rma_line_id") + line = self.env["rma.order.line"].browse([line]) if line.reference_move_id: return res if line.sale_line_id: