From 8df8ccacd561abfab0861de44a974db42bbe4da2 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Tue, 18 Dec 2018 20:42:43 +0100 Subject: [PATCH] Bank keys renewal button --- account_ebics/__openerp__.py | 2 +- account_ebics/models/ebics_config.py | 4 ++++ account_ebics/views/ebics_config.xml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/account_ebics/__openerp__.py b/account_ebics/__openerp__.py index 1755cc3..8781351 100644 --- a/account_ebics/__openerp__.py +++ b/account_ebics/__openerp__.py @@ -4,7 +4,7 @@ { 'name': 'EBICS banking protocol', - 'version': '8.0.1.4.0', + 'version': '8.0.1.5.0', 'license': 'AGPL-3', 'author': 'Noviat', 'category': 'Accounting & Finance', diff --git a/account_ebics/models/ebics_config.py b/account_ebics/models/ebics_config.py index dc2a7f1..45e743e 100644 --- a/account_ebics/models/ebics_config.py +++ b/account_ebics/models/ebics_config.py @@ -260,6 +260,10 @@ class EbicsConfig(models.Model): def set_to_draft(self): return self.write({'state': 'draft'}) + @api.multi + def set_to_get_bank_keys(self): + return self.write({'state': 'get_bank_keys'}) + @api.multi def set_to_active(self): return self.write({'state': 'active'}) diff --git a/account_ebics/views/ebics_config.xml b/account_ebics/views/ebics_config.xml index 83c090e..66165b4 100644 --- a/account_ebics/views/ebics_config.xml +++ b/account_ebics/views/ebics_config.xml @@ -26,6 +26,9 @@