Bank keys renewal button

This commit is contained in:
Luc De Meyer 2018-12-18 20:42:43 +01:00
parent 2f06af7cf9
commit 8df8ccacd5
3 changed files with 8 additions and 1 deletions

View File

@ -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',

View File

@ -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'})

View File

@ -26,6 +26,9 @@
<button name="set_to_draft" states="active" string="Set to Draft" type="object"
groups="account.group_account_manager"
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"
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."/>