Rename move state from cancel to cancelled

issue8927
review297851002
This commit is contained in:
David Harper
2020-06-06 10:30:11 +01:00
parent bdfe968443
commit 6030d08e4c
+1 -1
View File
@@ -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