Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Time Off
  3. Leave For Days in Odoo v 19.0
  4. Sales Conditions FAQ

Leave For Days in Odoo

by SprintERP Technologies http://://sprinterp.com
Odoo

$ 10.00

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
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
LicenseLGPL-3
Websitehttp://://sprinterp.com
Versions 18.0 19.0
You bought this module and need support? Click here!
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
LicenseLGPL-3
Websitehttp://://sprinterp.com
Versions 18.0 19.0
sprinterp-logo

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

Advance Notice Enforcement
Leave-Specific Configuration
Prevent Backdated Requests
Automated Policy Validation
Better Resource Planning
Dynamic Form Warnings

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.

Step 1
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.

Odoo Leave Type Advance Notice Configuration

Policy Enforcement: Once configured, the system will automatically block any leave request submitted after the defined notice period, ensuring strict adherence to HR policies.

Step 2
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.

Odoo Time Off Request Validation

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.

Step 3
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.

Odoo Leave Validation Error Message

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?

Free 90 Days Support

Installation, Configuration & Bug Fixing support from our experts.

Email Support sales.sprinterp@gmail.com
Microsoft Teams abulkasim7214

© 2017 SprintERP Technologies. All Rights Reserved.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with