Skip to content

Commit

Permalink
[FIX] fix create_replace: call create replace on single rma
Browse files Browse the repository at this point in the history
  • Loading branch information
sbejaoui committed Oct 14, 2024
1 parent 3923802 commit 159ea7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rma/models/rma.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit 159ea7b

Please sign in to comment.