changeset eab5842be194 in modules/account_tax_cash:default
details: 
https://hg.tryton.org/modules/account_tax_cash?cmd=changeset;node=eab5842be194
description:
        Rename invoice state from cancel to cancelled

        issue8927
        review303661003
diffstat:

 account.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r c312f17ff3b6 -r eab5842be194 account.py
--- a/account.py        Mon May 04 12:13:27 2020 +0200
+++ b/account.py        Sat Jun 06 10:23:14 2020 +0100
@@ -249,7 +249,7 @@
         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 @@
 
     @classmethod
     @ModelView.button
-    @Workflow.transition('cancel')
+    @Workflow.transition('cancelled')
     def cancel(cls, invoices):
         super(Invoice, cls).cancel(invoices)
         cls._update_tax_cash_basis(invoices)

Reply via email to