Skip to content
Snippets Groups Projects
Commit 366b01f0 authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] hr_attendance: get group via xmlid instead of searching via name match...

[FIX] hr_attendance: get group via xmlid instead of searching via name match (which will not works in other languages)
parent 9fc91bd3
Branches
Tags
No related merge requests found
......@@ -38,7 +38,7 @@ class HrEmployee(models.Model):
@api.multi
def _inverse_manual_attendance(self):
manual_attendance_group = self.env['res.groups'].search([('name', '=', 'Manual Attendance')])
manual_attendance_group = self.env.ref('hr.group_hr_attendance')
for employee in self:
if employee.user_id:
if employee.manual_attendance:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment