diff --git a/sale.py b/sale.py index a39471ef4f..ca3c5ab5f3 100644 --- a/sale.py +++ b/sale.py @@ -131,7 +131,7 @@ class SaleLine: return moves = set() for move in self.moves: - for inv_move in move.shipment_out.inventory_moves: + for inv_move in move.shipment.inventory_moves: if inv_move.product.id == self.product.id: moves.add(inv_move) for move in moves: