Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

leaves in Odoo

By
Fabiola KANTOHERISOLO
on 9/3/15, 9:27 AM 766 views

how to exclude public holidays and weekends of leaves for the employee works and pays per hour 

2
Marvin Taboada
On 9/4/15, 1:28 AM

Hello Fabiola,

Although there exists a "Working schedule" at the `hr_contract` module, that could be used to define the workweek and exclude "weekends" from leaves (the underlying business object is `resource.calendar`), the official `hr_holidays` module doesn't support excluding public holidays or weekends.

You can overcome the lack of "public holidays" by grouping employees by Tag and creating yearly allocations (by Employee Tag) and then registering/approving leave-requests (by Employee Tag as well) for these days. Public holidays are usually common to all employees but that might not be always the case. If employees observe different holidays, you can use different tags to group them before creating allocations. This idea is not new, it has been previously discussed here.

Excluding weekends (week days not part of the workweek) is harder because (1) you would require to repeat the above procedure to exclude each weekend, and, (2) it is more common to have employees with different workweeks in the first place.

Community addons have been developed to fulfill this requirement, I've just found the following one but is for v7.0 and I have never used it (having lot of dependencies increases chances of including broken modules), you may give it a try:

https://apps.openerp.com/apps/7.0/hr_holidays_extension/ 

Just in case, this link contains references about the official `hr_holidays` module (somehow outdated):

https://doc.odoo.com/6.0/book/4/4_11_HR/4_11_HR_holidays/ 

Regards.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/3/15, 9:27 AM
Seen: 766 times
Last updated: 9/4/15, 1:29 AM