mirror of
				https://github.com/brain-tec/account_ebics.git
				synced 2025-11-03 22:50:59 +00:00 
			
		
		
		
	[11.0]update for subscription based fintech licensing
This commit is contained in:
		@@ -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
 | 
			
		||||
=============
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    'name': 'EBICS banking protocol',
 | 
			
		||||
    'version': '11.0.1.7.1',
 | 
			
		||||
    'version': '11.0.1.7.2',
 | 
			
		||||
    'license': 'AGPL-3',
 | 
			
		||||
    'author': 'Noviat',
 | 
			
		||||
    'category': 'Accounting & Finance',
 | 
			
		||||
 
 | 
			
		||||
@@ -21,11 +21,16 @@ fintech_register_users = config.get('fintech_register_users')
 | 
			
		||||
 | 
			
		||||
try:
 | 
			
		||||
    if fintech:
 | 
			
		||||
        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.split(','))
 | 
			
		||||
            name=fintech_register_name,
 | 
			
		||||
            keycode=fintech_register_keycode,
 | 
			
		||||
            users=fintech_register_users)
 | 
			
		||||
except RuntimeError as e:
 | 
			
		||||
    if e.message == "'register' can be called only once":
 | 
			
		||||
        pass
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user