'Used in mrp_operations/mrp_operations.py (default parameters) and in
interval_get()
:deprecated: Odoo saas-3. Use schedule_hours instead. Note:
Byday was not used. Since saas-3, counts Leave hours instead of all-day leaves.'

@api.model
def interval_get_multi(self, date_and_hours_by_cal, resource=False, byday=True):

    res = {}
    for (dt_str, hours, calendar_id) in date_and_hours_by_cal:
        result = self.browse(calendar_id).schedule_hours(hours, day_dt=fields.Datetime.from_string(dt_str).replace(second=0), compute_leaves=True, resource_id=resource, default_interval=(8, 16))
        res[(dt_str, hours, calendar_id)] = result
    return res
