Merge pull request #113 from expsa/dev_odex25_hr
[FIX] fix holiday.can_reset = True is else
This commit is contained in:
commit
1d6a97b5eb
|
|
@ -242,6 +242,8 @@ class Holidays(models.Model):
|
|||
for holiday in self:
|
||||
if group_hr_manager in user.groups_id or holiday.employee_id and holiday.employee_id.user_id == user:
|
||||
holiday.can_reset = True
|
||||
else:
|
||||
holiday.can_reset = False
|
||||
|
||||
@api.constrains('date_from', 'date_to')
|
||||
def _check_date(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue