From 39180479131dd30cfafde02480037480fa8ae12c Mon Sep 17 00:00:00 2001 From: David Date: Mon, 24 Apr 2023 13:45:28 +0200 Subject: [PATCH] [FIX] rma: linked replacement moves It's useless to link the replacement moves and the side effect is that we can't make a proper reservation as the move stays in `waiting` state forever because the origin move (the reception one) is already done. TT42739 --- rma/models/rma.py | 1 - 1 file changed, 1 deletion(-) diff --git a/rma/models/rma.py b/rma/models/rma.py index 1e1d8827..cf7b4b59 100644 --- a/rma/models/rma.py +++ b/rma/models/rma.py @@ -1135,7 +1135,6 @@ class Rma(models.Model): moves_before = self.delivery_move_ids self._action_launch_stock_rule(scheduled_date, warehouse, product, qty, uom) new_moves = self.delivery_move_ids - moves_before - self.reception_move_id.move_dest_ids += new_moves body = "" # The product replacement could explode into several moves like in the case of # MRP BoM Kits