Rename state from cancel to cancelled

#040791
issue8927
This commit is contained in:
Raimon Esteve 2020-08-31 12:35:07 +02:00
parent cdcacc059c
commit 2efd7155c3
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class Sale(metaclass=PoolMeta):
@classmethod
def get_residual_amount(cls, sales, name):
return {s.id: s.total_amount - s.paid_amount if s.state != 'cancel'
return {s.id: s.total_amount - s.paid_amount if s.state != 'cancelled'
else Decimal(0) for s in sales}
@classmethod