diff --git a/account.py b/account.py index b3b0d5dad5..ae6bc92e30 100644 --- a/account.py +++ b/account.py @@ -49,7 +49,7 @@ class InvoiceLine(metaclass=PoolMeta): Uom = pool.get('product.uom') quantity = 0 for stock_move in self.stock_moves: - if stock_move.state != 'cancel': + if stock_move.state != 'cancelled': quantity += Uom.compute_qty( stock_move.uom, stock_move.quantity, self.unit) return quantity