With this module, we will be able to extend automatically a leave when the period is reached.
This might be necessary for leaves without a clear return date for the employee.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Automatically extends validated leaves when their end date is reached, based on a leave type configuration. If another leave overlaps, the extension is stopped and an activity is scheduled for the manager.
This module adds an automatic extension mechanism for time off requests. On each leave type (for example, sick leave without a clear return date) you can switch on "Auto extend" and set a number of days. When a leave of that type is validated and its end date passes, a daily scheduled job extends it by that number of days.
On the leave form, users in the time off manager group see an "Auto extend" toggle and a period field. These are filled in automatically from the leave type but can be adjusted on the individual leave. The extension only applies to validated leaves with a positive period.
Before extending, the system checks whether the employee already has another leave starting inside the new period. If so, the leave is not extended, the auto-extend flag is switched off, and an activity titled "Leave cannot be extended due to overlapping" is created for follow-up.
When a leave is extended, its end date is recalculated and the related resource planning entries are refreshed. The module touches hr.leave and hr.leave.type, and adds a daily cron job named "Holidays: Auto extend".
Depends on
Models and fields (2)
- hr.leave · extends an existing modelauto_extend, auto_extend_type (Auto extend type), auto_extend_period
- hr.leave.type · extends an existing modelauto_extend, auto_extend_period
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/hr-holidays.
terminal Installation and usage
OCA documentation · Odoo 16.0Usage
Source · Odoo 16.0- Access leave types and mark it as "Auto extendable"
- When the manager approves the leave, the "Auto extendable" check will be marked
- When we decide that the leave is no longer extendable, we can uncheck it.
*
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.