Tanguy
Tanguy
@fw-bot up to saas-16.3 fixed from 16.4 by https://github.com/odoo/odoo/commit/16a07ed1bfd33a193b363f3e87aab3f9bd6f8bd0
@fw-bot up to saas-16.4 https://github.com/odoo/odoo/commit/6074d86b2076117978136259d70d043ef3dba1ee refactored the leave duration in 17.0 and fixed this issue.
It seems to me we could also calculate the number of days of a leave by passing to _get_number_of_days_batch the start of the first day and the end of the...
I've modified the PR. I think conceptually it makes sense to consider the whole day as a leave if we have different schedules, let me know what you think.
It should now work for half days, the problem is that _get_number_of_days_batch doesn't always return exactly 0.5 for half days.
Hello @Bertrand2, date_from and date_to are now correct for leaves in half_days or in hours.
Thanks for all the suggestions :+1: Changes made.
Changed :slightly_smiling_face: Thank you for the help
robodoo up to saas-17.4 This PR backports the following PR: https://github.com/odoo/odoo/pull/176188 It doesn't seem like there was a good functional reason to round up to the nearest half hour