diff --git a/addons/account/security/account_security.xml b/addons/account/security/account_security.xml index 0ea90c4dbe6..8e08ed1693e 100644 --- a/addons/account/security/account_security.xml +++ b/addons/account/security/account_security.xml @@ -299,5 +299,17 @@ [('company_id', 'in', company_ids)] + + + + Billing: Allow accessing employee bank accounts + + [(1, '=', 1)] + + diff --git a/addons/hr/security/hr_security.xml b/addons/hr/security/hr_security.xml index 717928e00db..f9fccadd833 100644 --- a/addons/hr/security/hr_security.xml +++ b/addons/hr/security/hr_security.xml @@ -72,5 +72,19 @@ ['|', ('user_id', '=', user.id), ('activity_ids.user_id', '=', user.id)] + + + HR: Prevent non HR officers from accessing employee bank accounts + + [('partner_id.employee_ids', '=', False)] + + + + + HR: Allow HR officers from accessing employee bank accounts + + [(1, '=', 1)] + +