[FIX] Do not link reception and delivery move in case of RMA replacement

This commit is contained in:
Florian da Costa
2022-02-07 09:49:55 +01:00
committed by Víctor Martínez
parent e2dd2799e5
commit 79d0fcff45

View File

@@ -1164,7 +1164,6 @@ class Rma(models.Model):
self._action_launch_stock_rule(scheduled_date, warehouse, product, qty, uom)
new_move = self.delivery_move_ids - moves_before
if new_move:
self.reception_move_id.move_dest_ids = [(4, new_move.id)]
self.message_post(
body=_(
"Replacement: "