5 Commits

Author SHA1 Message Date
ef3c9143dd [REF]l10n_fr_hr_holidays:clean up leave days computation
- remove unused _round_to_nearest_half
- evaluate _l10n_fr_leave_applies once in _get_number_of_days_batch and
  count working dates without a day-by-day loop
- compute the calendar working hours once per date lookup loop
- move pytz import to the top of resource_calendar.py

No functional change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 10:46:57 +00:00
646ab82880 [FIX]l10n_fr_hr_holidays:skip public holidays when looking for the return day of part-time employees
When the next scheduled working day of a part-time employee after the
leave is a public holiday, the leave end date was not postponed to the
day before the actual return, so company working days in between were
not counted (e.g. Wed PM-Fri employee, leave 23/12 -> 31/12 with 01/01
being a Friday: 6 days counted instead of 9).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 10:46:57 +00:00
76c8eab917 [FIX]l10n_fr_hr_holidays:fix bug in part-time employee duleaves duration calculation 2026-10-08 12:28:46 +02:00
9e4342fba2 [FIX]16.0-fix-french-holidays:fix the resource calendar linked to the leave
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m32s
2025-12-30 14:49:17 +01:00
dc5fd2897a [MIG]l10n_fr_hr_holidays:backport from v17 to 16 2025-09-24 07:06:22 +00:00