From a5e2b2303f6174392f85b52964f7f94c2e3e7e55 Mon Sep 17 00:00:00 2001 From: AaronHForgeFlow Date: Thu, 16 Nov 2023 15:40:01 +0100 Subject: [PATCH] [FIX] rma: RMA location in the warehouse should not be inside stock --- rma/models/stock_warehouse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rma/models/stock_warehouse.py b/rma/models/stock_warehouse.py index 1f50e25e8..662c063e5 100644 --- a/rma/models/stock_warehouse.py +++ b/rma/models/stock_warehouse.py @@ -67,7 +67,7 @@ def write(self, vals): { "name": "RMA", "usage": "internal", - "location_id": wh.lot_stock_id.id, + "location_id": wh.view_location_id.id, "company_id": wh.company_id.id, } )