Merge pull request #139 from expsa/abuzar_task_hr

[FIX] fix bug in hr 007
This commit is contained in:
AbuzarExp 2024-07-09 14:26:04 +03:00 committed by GitHub
commit 09eba281e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ class Holidays(models.Model):
return True
def add_follower(self, employee_id):
employee = self.env['hr.employee'].browse(employee_id)
employee = self.env['hr.employee'].browse(employee_id).sudo()
partner_ids = []
if employee.user_id: