Fixes crashes when creating timesheet
This commit is contained in:
parent
dceedc2960
commit
697d08d5e3
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue