From 6030d08e4ccaa72f07bd761b6375e1d667b2d467 Mon Sep 17 00:00:00 2001 From: David Harper Date: Sat, 6 Jun 2020 10:30:11 +0100 Subject: [PATCH] Rename move state from cancel to cancelled issue8927 review297851002 --- account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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