[FIX] rma: pre-commit

This commit is contained in:
Pedro M. Baeza
2021-06-19 11:38:57 +02:00
committed by Alex Vining
parent e2e1df84fe
commit a13b9fad61

View File

@@ -140,9 +140,7 @@ class SaleOrderLine(models.Model):
if move_dest: if move_dest:
visited_moves += move_dest visited_moves += move_dest
qty += sum(move_dest.mapped("product_uom_qty")) qty += sum(move_dest.mapped("product_uom_qty"))
move_dest = ( move_dest = destination_moves(move_dest) - visited_moves
destination_moves(move_dest) - visited_moves
)
# If by chance we get a negative qty we should ignore it # If by chance we get a negative qty we should ignore it
qty = max(0, sum((qty, qty_returned))) qty = max(0, sum((qty, qty_returned)))
data.append( data.append(