'Used in hr_payroll/hr_payroll.py
:deprecated: Odoo saas-3. Use get_working_hours_of_date instead. Note:
since saas-3, take hour/minutes into account, not just the whole day.'

@api.multi
def working_hours_on_day(self, day):

    if isinstance(day, datetime.datetime):
        day = day.replace(hour=0, minute=0)
    return self.get_working_hours_of_date(start_dt=day)
