Rename move state from cancel to cancelled
issue8927 review297851002
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user