v 12.0 Third Party 243
Download for v 12.0 Deploy on Odoo.sh
Required Apps Leaves (hr_holidays)
Employees (hr)
Lines of code 110
Technical Name leave_sandwich_rule
You bought this module and need support? Click here!
Required Apps Leaves (hr_holidays)
Employees (hr)
Lines of code 110
Technical Name leave_sandwich_rule

Sandwich Rule

Add Sandwich Rule in Employee Leaves.


The module helps HR to apply sandwich rule over employees, when they take leave in midst of two general leaves. Sandwich rule shall be applied after considering the start and end days of the general leaves. The module gets with an option to disable this feature for specific employees, also an option for showing the sandwich leave notification when employees apply their leaves.


Sandwich rule can be set on working times

This rule can be disabled for specific employees

Option for showing sandwich leave notification, when applying leaves


After installation, go to working time> Enable/Disable Sandwich Rule.

If you want, you can disable this feature for specific employees. Check the show notification option for getting sandwhich leave notification when applying for leaves.

Here we can see the sandwich rule applied in leaves


Cybrosys Cover Video

Suggested Products

Our Services

Odoo Customization
Odoo Implementation
Odoo Support
Hire Odoo Developer
Odoo Integration
Odoo Migration
Odoo Consultancy
Odoo Implementation
Odoo Licensing Consultancy

Our Industries


Easily procure and sell your products


Easy configuration and convivial experience


A platform for educational management


Plan, track and schedule your operations

E-commerce & Website

Mobile friendly, awe-inspiring product pages

Service Management

Keep track of services and invoice


Run your bar or restaurant methodically

Hotel Management

An all-inclusive hotel management application

Need Help?

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, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
There are no ratings yet!
Duration of leaves
on 6/11/22, 4:27 AM

Hello Team,

When I select the dates From  06/01/2022 To 07/01/2022 it gives the duration 33 days.

it is wrong. it need to display 31 days. 

Thank you

Re: Duration of leaves
Cybrosys Technologies
on 6/22/22, 5:20 AM Author

Including the 'from-date(06/01/2022)' and 'to-date(07/01/2022)' total working days are 23. When applying the sandwich rule extra two days for 5 Friday. Thus making the total duration 23+(2*5)=33.