Valentin Lab 92dc0e2a58 [IMP]hr_employee_stats_sheet:read the validated leaves of all the days in one search
Each day ran two searches on the leaves, one for the recoveries and one
for the other leaves. The days computed together now share one search,
and ``_absence_hours_by_stat`` applies the existing rule to each day: a
single-day request counts the hours Odoo computed for it, a day inside a
longer request counts the planned hours of that day.

The leaves of a day stay in the search order (``date_from desc``), so the
sums are the same as before.

Assisted-by: Claude:claude-opus-5-5
Assisted-by: GPT:gpt-6.2-sol-ultrafast
2026-11-19 14:09:25 +01:00
2022-06-22 14:13:39 +02:00
Description
No description provided
GPL-3.0 1.2 MiB
Languages
Python 99.2%
Shell 0.8%