Allow to use _adjust_to_calendar with or without leaves. This PR adds a keyword argument to the _adjust_to_calendar, _get_closest_work_time and _work_intervals_batch to include or not the employee being on leave when searching for the start and end of the shift. task-2632775 closes odoo/odoo#79127 Related: odoo/enterprise#21944 Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>