| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Time Off (hr_holidays)
• Calendar (calendar) • Employees (hr) • Discuss (mail) |
| Lines of code | 38 |
| Technical Name |
se_leave_days |
| License | LGPL-3 |
| Website | http://://sprinterp.com |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Time Off (hr_holidays)
• Calendar (calendar) • Employees (hr) • Discuss (mail) |
| Lines of code | 38 |
| Technical Name |
se_leave_days |
| License | LGPL-3 |
| Website | http://://sprinterp.com |
| Versions | 18.0 19.0 |
Leave For Days in Odoo
Streamline HR operations by enforcing mandatory Advance Notice Periods for leave requests. Ensure your team plans ahead effectively.
Module Key Highlights
How the Leave Advance Notice Works
Our module provides a policy-centric approach to Odoo HR management. By utilizing Odoo's internal Model Inheritance and Python Constraints, the system identifies the leave type and request date in real-time. For every leave application, the module dynamically calculates the lead time between today and the requested start date. This ensures that while leave requests are easy to create, your companyâs advance notice strategy remains strictly enforced. If a request doesn't meet the criteria, the system automatically blocks the submission, providing maximum operational planning while maintaining a smooth user experience for employees and managers alike.
Configure Advance Notice for Leave Types
Navigate to the Time Off module and go to Configuration -> Leave Types. Select any leave type (e.g., Paid Time Off) to access its settings. Under the new SET LEAVE section, you can enable the Set leave Before Days toggle. This allows you to define the mandatory number of Before Days an employee must apply in advance.
Policy Enforcement: Once configured, the system will automatically block any leave request submitted after the defined notice period, ensuring strict adherence to HR policies.
Automated Request Validation
When an employee creates a new Time Off Request, the system automatically checks the Requested Date against the current date. It calculates the difference to ensure it meets the mandatory notice period defined in the Leave Type configuration. This real-time validation ensures that all "To Approve" requests are compliant with company policy before reaching managers.
Smart Constraint: If the request date is too close to today (less than the required 'Before Days'), the system will trigger a validation error, preventing the user from saving or submitting the request.
Strict Policy Enforcement & Error Handling
If an employee attempts to submit a leave request that does not meet the mandatory notice period, the system triggers an immediate Validation Error. As shown in the message, it clearly states the Invalid Operation and informs the user exactly how many days in advance they must apply. This ensures that no unauthorized short-notice leaves are processed.
Dynamic Feedback: The error message automatically updates based on the "Before Days" value you set in Step 1, providing clear guidance to the employee for their future applications.
Module Capabilities & Features
A specialized HR utility module for Odoo Time Off management that enforces company policies by ensuring leave requests meet mandatory advance notice requirements.
Custom Notice Period
Define specific "Before Days" for each leave type independently. For example, require 15 days notice for Annual Leave but 0 for Sick Leave.
Constraint Validation
Automatically validates every leave request against the current date, preventing employees from submitting non-compliant or last-minute requests.
Selective Enforcement
Easily toggle the advance notice requirement on or off per leave type, giving HR managers full flexibility over different absence policies.
Smart Error Alerts
Triggers a clear and helpful validation error message explaining exactly how many days of advance notice are required for that specific leave.
Seamless View Integration
Adds configuration fields directly into the existing Leave Type form view, maintaining a clean and native Odoo user experience.
Resource Optimization
By enforcing notice periods, managers gain better visibility into future absences, allowing for more effective team and project planning.
Need Any Help?
Installation, Configuration & Bug Fixing support from our experts.
© 2017 SprintERP Technologies. All Rights Reserved.
Please log in to comment on this module