From 4ee049ce98bc38bb2eda4bd7d9de8adaf4283cb5 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Thu, 3 Dec 2020 20:45:22 +0100 Subject: [PATCH] [8.0]update for subscription based fintech licensing --- account_ebics/README.rst | 2 ++ account_ebics/__openerp__.py | 2 +- account_ebics/models/fintech_ebics_register.py | 13 ++++++++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/account_ebics/README.rst b/account_ebics/README.rst index 0878a2f..05a20c9 100644 --- a/account_ebics/README.rst +++ b/account_ebics/README.rst @@ -40,6 +40,8 @@ The keycode of the licensed version. - fintech_register_users The licensed EBICS user ids. It must be a string or a list of user ids. +You should NOT specify this parameter if your license is subsciption +based (with monthly recurring billing). Configuration ============= diff --git a/account_ebics/__openerp__.py b/account_ebics/__openerp__.py index 57c3954..734d8c5 100644 --- a/account_ebics/__openerp__.py +++ b/account_ebics/__openerp__.py @@ -4,7 +4,7 @@ { 'name': 'EBICS banking protocol', - 'version': '8.0.1.6.0', + 'version': '8.0.1.6.1', 'license': 'AGPL-3', 'author': 'Noviat', 'category': 'Accounting & Finance', diff --git a/account_ebics/models/fintech_ebics_register.py b/account_ebics/models/fintech_ebics_register.py index 1430024..96f27f7 100644 --- a/account_ebics/models/fintech_ebics_register.py +++ b/account_ebics/models/fintech_ebics_register.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2009-2018 Noviat. +# Copyright 2009-2020 Noviat. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging @@ -22,13 +22,16 @@ fintech_register_users = config.get('fintech_register_users') try: if fintech: - fintech_register_users = fintech_register_users \ + fintech_register_users = ( + fintech_register_users and [x.strip() for x in fintech_register_users.split(',')] + or None + ) fintech.cryptolib = 'cryptography' fintech.register( - fintech_register_name, - fintech_register_keycode, - fintech_register_users) + name=fintech_register_name, + keycode=fintech_register_keycode, + users=fintech_register_users) except RuntimeError, e: if e.message == "'register' can be called only once": pass