[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
This commit is contained in:
David
2023-04-24 13:45:28 +02:00
parent c0ad0bf6aa
commit 3918047913

View File

@@ -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