Skip to Content
Menu
This question has been flagged

Business Case: 


In my company, employees are entitled to 30 days of vacation per year, and we work from Monday to Friday. However, according to policies, if an employee requests a week of vacation (from Monday to Monday), Odoo has to deduct 8 days from their allocated 30 days (regardless of weekends) instead of 5 days. 

Currently, we use the payroll module, and we do not want weekends to be considered as paid days. How should we configure the Working Schedule and the Time Off module so that Odoo deducts the taken days, including weekends, without counting weekends as paid days?


Note: we work 40 hours per week (8 hours per day).

Avatar
Discard
Author Best Answer

Here is a workaround to solve this Business Case: 

Step 1: 

Add Saturdays and Sundays to your Working Schedule (40 hours per Week) 

Go to Payroll > Configuration > Working Times 

Note: The field "work from" and "work to" may vary depending on your company's working schedule

Result:

If you go to the Time Off Module and create a Time Off from Monday to Monday Odoo will take into account the weekends, in this case 8 days.

Calendar View (Time Off Module)


Step 2 Link an unpaid Work Entry type to the working hours. 

Important Note: This may vary depending on how you have your work entry types and structures configured in Payroll. In this example, I am using the unpaid work entry type which is configured like this:

This means that in the structure "Regular Pay" this work entry type will be considered unpaid so it won't grant any money to the employees that belong to the structure type selected in the field "Unpaid in Structures Types".

To link the Work Entry Types to the working hours go to Working Times in Payroll App (Route mentioned previously).


And now everything is set, Odoo won't take in to account the weekends in the payslips as working days and you will be able to deduct the Time Off Allocated when an employee requires vacations where weekends are included.

Disclaimer:

This is not official Odoo documentation. The work entries and working schedules may vary depending on the business case.



Avatar
Discard
Related Posts Replies Views Activity
1
Apr 24
2290
1
Dec 23
2391
3
Aug 25
2923
1
Jul 24
1889
1
May 24
1169