'Wrapper on _schedule_hours: return the beginning/ending datetime of
an hours scheduling.'

@api.multi
def schedule_hours_get_date(self, hours, day_dt=None, compute_leaves=False, resource_id=None, default_interval=None):

    res = self._schedule_hours(hours, day_dt, compute_leaves, resource_id, default_interval)
    if (res and (hours < 0.0)):
        return res[0][0]
    elif res:
        return res[(-1)][1]
    return False
