mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[FIX] rma: pre-commit
This commit is contained in:
committed by
Alex Vining
parent
e2e1df84fe
commit
a13b9fad61
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user