Change 1 of 4
Calendar day vs working day deductions
The amount of time off taken can now be calculated based on either working days or calendar days.
Official Odoo 20 release note
In plain words
A time type has a Count Days as option: Working Days (the duration depends on the employee's working schedule, as before) or Calendar Days (a full week always counts 7 days, weekends included).
Where to find it
- Time Off > Configuration > Time Types, open a type.
- Time Off tab > Configuration > Count Days as.
For users
Long leaves such as parental or sabbatical leave can be deducted in calendar days.
For developers
New selection hr.work.entry.type.count_days_as (working, calendar); hr.leave._compute_date_from_to() and the duration computation branch on it. Note that hr.leave.type is now part of hr.work.entry.type (time types).
Upgrading from Odoo 19
Existing types keep Working Days. Custom code referring to hr.leave.type must be moved to hr.work.entry.type.
