From 52decc07fdfd811f68752cfab6be7c9c6ca09497 Mon Sep 17 00:00:00 2001 From: HIRAL BHAVSAR Date: Wed, 30 Aug 2017 12:35:22 +0530 Subject: [PATCH] [IMP] account, account_*: add cancelled state to payment task: https://www.odoo.com/web#id=28001&view_type=form&model=project.task&menu_id= PR: #14492 --- addons/account/models/account_payment.py | 4 ++-- addons/account/views/account_payment_view.xml | 8 ++++---- addons/account_cancel/views/account_views.xml | 2 +- .../wizard/print_prenumbered_checks.py | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index 64e52787778..d43d767ee69 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -269,7 +269,7 @@ class account_payment(models.Model): company_id = fields.Many2one(store=True) name = fields.Char(readonly=True, copy=False, default="Draft Payment") # The name is attributed upon post() - state = fields.Selection([('draft', 'Draft'), ('posted', 'Posted'), ('sent', 'Sent'), ('reconciled', 'Reconciled'), ('cancel', 'Cancelled')], readonly=True, default='draft', copy=False, string="Status") + state = fields.Selection([('draft', 'Draft'), ('posted', 'Posted'), ('sent', 'Sent'), ('reconciled', 'Reconciled'), ('cancelled', 'Cancelled')], readonly=True, default='draft', copy=False, string="Status") payment_type = fields.Selection(selection_add=[('transfer', 'Internal Transfer')]) payment_reference = fields.Char(copy=False, readonly=True, help="Reference of the document used to issue this payment. Eg. check number, file name, etc.") @@ -425,7 +425,7 @@ class account_payment(models.Model): move.line_ids.remove_move_reconcile() move.button_cancel() move.unlink() - rec.state = 'cancel' + rec.state = 'cancelled' @api.multi def unlink(self): diff --git a/addons/account/views/account_payment_view.xml b/addons/account/views/account_payment_view.xml index 51e94a4a26d..e012baa6502 100644 --- a/addons/account/views/account_payment_view.xml +++ b/addons/account/views/account_payment_view.xml @@ -6,7 +6,7 @@ account.payment.tree account.payment - + @@ -25,7 +25,7 @@ account.supplier.payment.tree account.payment - + @@ -113,8 +113,8 @@
diff --git a/addons/account_cancel/views/account_views.xml b/addons/account_cancel/views/account_views.xml index 3ee651f271d..428c6b4414f 100644 --- a/addons/account_cancel/views/account_views.xml +++ b/addons/account_cancel/views/account_views.xml @@ -65,7 +65,7 @@ -