diff --git a/rma_sale/models/sale.py b/rma_sale/models/sale.py index 5d52a417..56bc4ca9 100644 --- a/rma_sale/models/sale.py +++ b/rma_sale/models/sale.py @@ -140,9 +140,7 @@ class SaleOrderLine(models.Model): if move_dest: visited_moves += move_dest qty += sum(move_dest.mapped("product_uom_qty")) - move_dest = ( - destination_moves(move_dest) - visited_moves - ) + move_dest = destination_moves(move_dest) - visited_moves # If by chance we get a negative qty we should ignore it qty = max(0, sum((qty, qty_returned))) data.append(