summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-11-26 12:52:26 +0000
committerNans Lefebvre <len@odoo.com>2019-11-26 12:52:33 +0000
commitf3dec5d0aec484229738c2a65d4cdf234f9cb3ee (patch)
tree9824ef85b68f319107be15d35c4b732b2fa1ac6a /addons
parentb51be7fa025cded521b7b863e397e1cf7db15ba6 (diff)
[FIX] hr_holidays: allow request unlink because of typo in group name
opw 2144639 closes odoo/odoo#40927 X-original-commit: 82de73f421885e76aae81e2e6d8ec7bb585ad3f4 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/hr_holidays/models/hr_leave.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_holidays/models/hr_leave.py b/addons/hr_holidays/models/hr_leave.py
index e81f7e33fff..b5d5c1a3458 100644
--- a/addons/hr_holidays/models/hr_leave.py
+++ b/addons/hr_holidays/models/hr_leave.py
@@ -706,7 +706,7 @@ class HolidaysRequest(models.Model):
error_message = _('You cannot delete a time off which is in %s state')
state_description_values = {elem[0]: elem[1] for elem in self._fields['state']._description_selection(self.env)}
- if not self.user_has_groups('hr_holidays.groups_hr_user'):
+ if not self.user_has_groups('hr_holidays.group_hr_holidays_user'):
if any(hol.state != 'draft' for hol in self):
raise UserError(error_message % state_description_values.get(self[:1].state))
else: