Rename state from cancel to cancelled

#040791
issue8927
This commit is contained in:
Raimon Esteve 2020-08-31 11:46:29 +02:00
parent c4b3975c04
commit b7a6552a32
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class InvoiceLine(metaclass=PoolMeta):
line.check_tax_required()
def check_tax_required(self):
if not self.invoice or self.invoice.state in ('draft', 'cancel') or \
if not self.invoice or self.invoice.state in ('draft', 'cancelled') or \
self.type != 'line':
return
if not self.taxes: