diff --git a/addons/hr_contract/security/security.xml b/addons/hr_contract/security/security.xml index 40a0adb7940d0..131b360754c52 100644 --- a/addons/hr_contract/security/security.xml +++ b/addons/hr_contract/security/security.xml @@ -1,24 +1,24 @@ - - - Enable the user to see and manage the contracts from Employee application. - 10 - - - - Employee Manager - - - - - - Administrator - - - - + + Enable the user to see and manage the contracts from Employee application. + 10 + + + + Employee Manager + + + + + + Administrator + + + + + diff --git a/addons/loyalty/models/res_partner.py b/addons/loyalty/models/res_partner.py index 7991dba977ce1..eefb6bf1e2596 100644 --- a/addons/loyalty/models/res_partner.py +++ b/addons/loyalty/models/res_partner.py @@ -8,8 +8,7 @@ class ResPartner(models.Model): loyalty_card_count = fields.Integer( string="Active loyalty cards", compute='_compute_count_active_cards', - compute_sudo=True, - groups='base.group_user') + compute_sudo=True) def _compute_count_active_cards(self): loyalty_groups = self.env['loyalty.card']._read_group(