Bank keys renewal button

This commit is contained in:
Luc De Meyer 2018-12-18 21:41:33 +01:00
parent e0b619c740
commit 2e49ede542
3 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,7 @@
{ {
'name': 'EBICS banking protocol', 'name': 'EBICS banking protocol',
'version': '11.0.1.4.0', 'version': '11.0.1.5.0',
'license': 'AGPL-3', 'license': 'AGPL-3',
'author': 'Noviat', 'author': 'Noviat',
'category': 'Accounting & Finance', 'category': 'Accounting & Finance',

View File

@ -259,6 +259,10 @@ class EbicsConfig(models.Model):
def set_to_draft(self): def set_to_draft(self):
return self.write({'state': 'draft'}) return self.write({'state': 'draft'})
@api.multi
def set_to_get_bank_keys(self):
return self.write({'state': 'get_bank_keys'})
@api.multi @api.multi
def set_to_active(self): def set_to_active(self):
return self.write({'state': 'active'}) return self.write({'state': 'active'})

View File

@ -25,6 +25,9 @@
<button name="set_to_draft" states="active" string="Set to Draft" type="object" <button name="set_to_draft" states="active" string="Set to Draft" type="object"
groups="account.group_account_manager" groups="account.group_account_manager"
help="Set to Draft in order to reinitialize your bank connection."/> help="Set to Draft in order to reinitialize your bank connection."/>
<button name="set_to_get_bank_keys" states="active" string="Renew Bank Keys" type="object"
groups="account.group_account_manager"
help="Use this button to update the EBICS certificates of your bank."/>
<button name="set_to_active" states="draft" string="Force Active" type="object" <button name="set_to_active" states="draft" string="Force Active" type="object"
groups="account.group_account_manager" groups="account.group_account_manager"
help="Use this button to bypass the EBICS initialization (e.g. in case you have manually transferred active EBICS keys from another system."/> help="Use this button to bypass the EBICS initialization (e.g. in case you have manually transferred active EBICS keys from another system."/>