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:
|
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user