Fixes crashes when creating timesheet

This commit is contained in:
Tobias Herre 2021-05-05 09:06:07 +02:00
parent dceedc2960
commit 697d08d5e3
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ class HRHoliday(models.Model):
'user_id': self.employee_id.user_id.id, 'user_id': self.employee_id.user_id.id,
'sheet_id': sheet.id, 'sheet_id': sheet.id,
}) })
return timesheet_obj.create(cr, SUPERUSER_ID, res) return timesheet_obj.create(cr, SUPERUSER_ID, res, context=res)
@api.multi @api.multi
def count_day_hours_leave(self): def count_day_hours_leave(self):