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 |
License | AGPL-3 |
Website | http://www.aktivsoftware.com |
Versions |
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 |
License | AGPL-3 |
Website | http://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
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
Leave day calculation
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
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,