From 159ea7b16c85b18f4b42cb0d2b74f49cee76856b Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Mon, 14 Oct 2024 23:27:47 +0200 Subject: [PATCH] [FIX] fix create_replace: call create replace on single rma --- rma/models/rma.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rma/models/rma.py b/rma/models/rma.py index 902a17233..1fde32ef0 100644 --- a/rma/models/rma.py +++ b/rma/models/rma.py @@ -861,8 +861,8 @@ def action_confirm(self): rma_return_grouping=rec.env.company.rma_return_grouping ).create_replace( fields.Datetime.now(), - self.warehouse_id, - self.product_id, + rec.warehouse_id, + rec.product_id, rec.product_uom_qty, rec.product_uom, ) @@ -1510,8 +1510,8 @@ def update_received_state_on_reception(self): rma_return_grouping=rec.env.company.rma_return_grouping ).create_replace( fields.Datetime.now(), - self.warehouse_id, - self.product_id, + rec.warehouse_id, + rec.product_id, rec.product_uom_qty, rec.product_uom, )