[FIX] resource: _get_leave_intervals
[FIX] resource: _get_leave_intervals

We were using start_datetime instead of end_datetime. Which resulted
into wring results if we passed in datetimes with different date parts.

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo