Skip to content

Commit

Permalink
[FIX] rma: qty received and shipped in case of multiple step receptio…
Browse files Browse the repository at this point in the history
…n/expedition

Now the moves are filtered and only 1 move of the chain is selected to compute the quantity (the first one for reception and last one for expedition), so we should no longer ignore those to compute the quantities
  • Loading branch information
florian-dacosta committed Nov 7, 2024
1 parent bb16136 commit 0dff1e3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions rma/models/rma_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,6 @@ def _get_rma_move_qty(self, states, direction="in"):
)
)
for move in moves:
# If the move is part of a chain don't count it
if direction == "out" and move.move_orig_ids:
continue
elif direction == "in" and move.move_dest_ids:
continue
qty += product_obj._compute_quantity(move.product_uom_qty, rec.uom_id)
return qty

Expand Down

0 comments on commit 0dff1e3

Please sign in to comment.