Skip to Content
Menu

Sandwich Rule For HR Leave

by
Odoo
Third Party 275
Download for v 14.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Time Off (hr_holidays)
Calendar (calendar)
Employees (hr)
Discuss (mail)
Lines of code 77
Technical Name sandwich_rule
LicenseAGPL-3
Websitehttp://www.aktivsoftware.com
Versions
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 77
Technical Name sandwich_rule
LicenseAGPL-3
Websitehttp://www.aktivsoftware.com
Versions

Sandwich Rule

This module allows HR to apply Sandwich rule when employees apply for leave and is coming under the rule where employee has taken leave in midst of two working days. After considering the start and end date of leave once the Boolean is checked of "Apply Sandwich Rule" the employees leave will be counted accordingly and if the Boolean is unchecked the sandwich rule will not be applied.

Prerequisites before Installation

No prerequisites are required before the installation.

Configurations

No Configurations are required.

Step-By-Step Guidelines

You can see the standard working hours of any employee per week.

Go to Settings > Resource > Working Time. As shown in below image you can view the total working hours per week for any particular employee.

Now if employee has applied for leave on Friday and Monday and HR wants to apply Sandwich rule on it then with the help of this module HR can check the Boolean of- "Apply Sandwich Rule". You can see in the image due to the sandwich rule, employee's leave would be considered as 4 days due to sandwich rule.

As per the start and end date of leave taken by employee HR can decide whether it falls under the Sandwich rule or not. If the leaves taken on particular dates doesn't cover any sandwich rule HR can simply avoid checking the Boolean and you can see in the image the start and end date of leave covers four days but is considered for two days because sandwich rule is not applied.

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!
Leave day calculation
by
Hemangini
on 6/11/22, 4:48 AM

Hello Team,

In leave number of days some times wrong display like below example:

1) When I select the dates From  06/11/2022 To 06/24/2022 it gives the duration 16 days.it need to display 14 days. 

2) When I select the dates From  06/11/2022 To 06/17/2022 it gives the duration 9 days.it need to display 7 days. 

Thank you.

Re: Leave day calculation
by
Jainesh Shah
on 6/15/22, 1:21 AM Author

Hi Hemangini, 

Thanks for purchase our App. 

We are looking into the issue which you are facing and we fix that issue.

So, please share your email address here and we will share the updated app to you. 

Regards,