From 8379fb67e80de3a1c4582bdc5a12c19695d97e9b Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Fri, 29 May 2020 13:12:18 +0200 Subject: [PATCH] fix acl --- account_ebics/__manifest__.py | 2 +- account_ebics/security/ebics_security.xml | 4 ++-- account_ebics/security/ir.model.access.csv | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/account_ebics/__manifest__.py b/account_ebics/__manifest__.py index 338dede..673c416 100644 --- a/account_ebics/__manifest__.py +++ b/account_ebics/__manifest__.py @@ -3,7 +3,7 @@ { 'name': 'EBICS banking protocol', - 'version': '13.0.1.0.1', + 'version': '13.0.1.0.0', 'license': 'LGPL-3', 'author': 'Noviat', 'category': 'Accounting & Finance', diff --git a/account_ebics/security/ebics_security.xml b/account_ebics/security/ebics_security.xml index 75c75a0..e518901 100644 --- a/account_ebics/security/ebics_security.xml +++ b/account_ebics/security/ebics_security.xml @@ -12,14 +12,14 @@ EBICS Configuration model company rule - ['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])] + ['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] EBICS File model company rule - ['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])] + ['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] diff --git a/account_ebics/security/ir.model.access.csv b/account_ebics/security/ir.model.access.csv index 283e1ca..ef316bb 100644 --- a/account_ebics/security/ir.model.access.csv +++ b/account_ebics/security/ir.model.access.csv @@ -1,7 +1,7 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_ebics_config_manager,ebics_config manager,model_ebics_config,account_ebics.group_ebics_manager,1,1,1,1 -access_ebics_config_user,ebics_config user,model_ebics_config,account.group_account_user,1,0,0,0 +access_ebics_config_user,ebics_config user,model_ebics_config,account.group_account_invoice,1,0,0,0 access_ebics_file_format_manager,ebics_file_format manager,model_ebics_file_format,account_ebics.group_ebics_manager,1,1,1,1 -access_ebics_file_format_user,ebics_file_format user,model_ebics_file_format,account.group_account_user,1,0,0,0 +access_ebics_file_format_user,ebics_file_format user,model_ebics_file_format,account.group_account_invoice,1,0,0,0 access_ebics_file_manager,ebics_file manager,model_ebics_file,account_ebics.group_ebics_manager,1,1,1,1 -access_ebics_file_user,ebics_file user,model_ebics_file,account.group_account_user,1,0,0,0 \ No newline at end of file +access_ebics_file_user,ebics_file user,model_ebics_file,account.group_account_invoice,1,0,0,0