Hexadecimal Mobile Logo
Open Menu

Introduction

The Sandwich Rule for Leaves in Odoo 12 simplifies leave management by counting holidays and weekends between two leave dates as part of the leave period. This ensures transparent HR policies and avoids payroll mismatches.

Sandwich Rule Leave Policy in Odoo 12

Image Source: odoo.com

What is the Sandwich Rule in Odoo 12?

The Sandwich Rule means that if an employee applies for leave before and after a holiday or weekend, then the holiday in between will also be treated as a leave day.

Example: If Saturday–Sunday is a weekend and an employee takes leave on Friday and Monday, then Sat–Sun will also be counted as leave.

FunctionalityDescription
Holiday CountIncludes weekends/holidays in applied leave.
AutomationNo need for manual HR intervention.
Payroll AccuracyEnsures correct salary deductions.
Policy EnforcementStandardized rules across the company.

Key Features Overview

FeatureBenefit
Auto DeductionLeaves auto-adjust with holidays/weekends.
Policy ConfigurableEnable/disable sandwich rule as needed.
Seamless HR IntegrationWorks with Odoo 12 HR & Payroll.
TransparencyEmployees see exact leave counts in portal.
Audit ReadyConsistent leave calculations for reports.

How the Sandwich Rule Works

How Sandwich Rule Works in Odoo

Image Source: odoo.com

The mechanism checks whether applied leaves cover holidays/weekends in between and extends leave count accordingly.

StepAction
1Employee applies for leave (e.g., Friday & Monday).
2System checks if holidays exist in between.
3If yes, those days are added as leave.
4Leave balance auto-adjusts.
5Payroll reflects correct deduction.

Odoo HRMS Customization Services

Configuration in Odoo 12

The Sandwich Rule can be configured within Leave Types and HR settings. Admins can enable or disable the rule as per company policy.

Configuration StepDetails
NavigateHR Module → Configuration → Leaves
EnableTick 'Apply Sandwich Rule' option
AssignApply to specific leave types (Casual/Annual).
SaveActivate rule for all employee requests.

Examples of Leave Deduction

Leave AppliedHoliday in BetweenTotal Deducted
Friday + MondaySaturday–Sunday4 days
Wednesday + FridayThursday holiday3 days
Thursday + MondayFri–Sun weekend5 days

Simplify Leave Management with the Sandwich Rule in Odoo 12

Simplify Leave Management with the Sandwich Rule in Odoo 12

Explore Our Odoo ServicesArrow

Benefits for HR Teams

BenefitImpact
Time SavingNo manual adjustments needed.
Fair PolicySame rules apply to all employees.
Payroll AccuracyAvoids salary disputes.
ComplianceSupports standard HR frameworks.

You Might Also Like

User Experience and UI

The feature integrates smoothly into the Odoo 12 leave management interface. Employees see real-time leave balances after applying.

UI ElementBenefit
Leave CalendarShows deducted days clearly.
Portal ViewEmployees can self-check balances.
HR DashboardManagers approve with policy applied.
ReportsLeaves auto-calculated in analytics.

Pricing and Availability

The Sandwich Rule is an Odoo 12 add-on app. Pricing may vary depending on vendor or custom development.

PlatformAvailabilityCost
Odoo 12 CESupportedPaid (custom app)
Odoo 12 EESupportedPaid (custom app)
Other VersionsRequires adaptationDepends on service

Practical Use Cases

User TypeUsage
SMEsSimplify leave and payroll automation.
Corporate HRStandardize holiday policies.
Schools/CollegesApply sandwich rule for staff leaves.
Remote TeamsEnforce rules across regions.

Odoo Custom App Development Services

Comparison with Default Leave Policy

AspectDefault Odoo LeaveWith Sandwich Rule
Holiday CountNot includedIncluded automatically
Payroll AccuracyManual adjustments neededFully automated
Employee TransparencyLimitedClear deduction display
Policy EnforcementDepends on HRSystem-controlled

Strengths and Drawbacks

StrengthsLimitations
Automates complex leave rulesRequires extra installation
Transparent leave deductionsNot native in Odoo 12 by default
Integrates with payrollCompany-specific policies may vary

Who Should Use It?

UserWhy Use It?
HR ManagersSave time on manual holiday checks.
OrganizationsEnsure fair and consistent leave rules.
EmployeesSee accurate leave balance instantly.
Payroll TeamsReduce disputes and errors.

Want to implement the Sandwich Rule in your Odoo HR system?

Want to implement the Sandwich Rule in your Odoo HR system?

Talk to Our ExpertsArrow

Getting Started

StepWhat To Do
1Purchase or download the Odoo 12 Sandwich Rule app.
2Install it via Apps module.
3Enable Sandwich Rule under Leave Settings.
4Test with sample leave applications.
5Roll out to employees company-wide.

FAQs

Q1: Is the Sandwich Rule built-in in Odoo 12?
A: No, it’s available as a custom/add-on app.

Q2: Can I apply the rule only for certain leave types?
A: Yes, HR can configure it per leave type.

Q3: Does it work with payroll?
A: Yes, deducted days are reflected in payroll calculations.

Q4: Can I disable the Sandwich Rule anytime?
A: Yes, admins can toggle the rule in leave settings.

Q5: Is it compatible with Odoo 13+?
A: With customization, it can be adapted for newer versions.

Scroll to top arrow
Grid background

Buy, Sell & Rent Properties – Download HexaHome App Now!

  • Search Icon

    Find your perfect home

  • House Icon

    Post your property at ₹0

Available on iOS & Android

download-playstoredownload-ios
mobile-app-banner

A Product By Hexadecimal Software Pvt. Ltd.