Rename state from cancel to cancelled

#040791
issue8927
This commit is contained in:
Raimon Esteve 2020-08-31 11:14:48 +02:00
parent f17a5eb792
commit a174d1db41
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ class SaleLine(metaclass=PoolMeta):
quantity = self.animal_quantity
for event in self.move_events:
if event.state != 'cancel':
if event.state != 'cancelled':
quantity -= event.quantity
if (self.animal_quantity > 0 and quantity <= 0 or
self.animal_quantity < 0 and quantity >= 0):