From 2a45fbe3d27b78f48af4a2f70343141b4e0c0a0b Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Fri, 28 Jul 2017 16:02:24 +0200 Subject: [PATCH] [IMP] account: Isolate `group_account_user` in account Purpose ======= We want to clear the accounting access groups when only the Invoicing application is installed as follows: If only Invoicing is installed, we should only have 2 groups: `Billing` and `Billing Manager` If Accouting and Finance is installed, we should have the current groups: `Billing`, `Accountant` and `Advisor` Specification ============= 1/ If we have only Invoicing the should have the following hierarchy: group_account_manager (Billing Manager) ---Implies---> group_account_invoice (Billing) group_account_user (Accountant) is a technical group out the Accouting groups hierarchy 2/ If we have Accouting and Finance installed, we should then have: group_account_manager (Advisor) ---Implies---> group_account_user (Accountant) ---Implies---> group_account_invoice (Billing) The reason we want to keep the group_account_user is that we will hide the accouting fields (account_id,...) with this group, allowing the consultants to show the accouting related information on support. --- addons/account/security/account_security.xml | 16 +++++++--------- .../security/account_accountant_security.xml | 14 +++++++++++++- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/addons/account/security/account_security.xml b/addons/account/security/account_security.xml index f51d87d63a8..6bb043e94fd 100644 --- a/addons/account/security/account_security.xml +++ b/addons/account/security/account_security.xml @@ -8,21 +8,19 @@ - - - + + Show Full Accounting Features + - - Accountant + + Billing Manager - - Adviser - - + + diff --git a/addons/account_accountant/security/account_accountant_security.xml b/addons/account_accountant/security/account_accountant_security.xml index 1340e7abc94..d86c828209b 100644 --- a/addons/account_accountant/security/account_accountant_security.xml +++ b/addons/account_accountant/security/account_accountant_security.xml @@ -1,6 +1,18 @@ - + + + + Accountant + + + + + + Advisor + + +