From dcdb0027eb9158340b9bb825fe6c04bd779b4a8a Mon Sep 17 00:00:00 2001 From: David Harper Date: Sat, 6 Jun 2020 10:23:14 +0100 Subject: [PATCH] Rename invoice state from cancel to cancelled issue8927 review303661003 --- account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account.py b/account.py index 9266f69c3b..3dd00ddb83 100644 --- a/account.py +++ b/account.py @@ -249,7 +249,7 @@ class Invoice(metaclass=PoolMeta): amount = sum(l.debit - l.credit for l in self.lines_to_pay) if self.state == 'paid': ratio = 1 - elif self.state == 'cancel': + elif self.state == 'cancelled': ratio = 0 else: payment_amount = sum( @@ -284,7 +284,7 @@ class Invoice(metaclass=PoolMeta): @classmethod @ModelView.button - @Workflow.transition('cancel') + @Workflow.transition('cancelled') def cancel(cls, invoices): super(Invoice, cls).cancel(invoices) cls._update_tax_cash_basis(invoices)