Odoo Help

0

Exclude weekend from number of days in Leave Requests

By
Helmi Ghribi
on 4/11/13, 7:18 PM 2,949 views

Hello,

How i can exclude weekend from number of days in Leave Requests. ex: start day (from_dt) = 12/04/2013 end day (to_dt) = 15/04/2013 it should be display 2 days in Number of Days not 4 days

plz help

0
Vadims Briksins
On 6/30/15, 2:01 PM

It seems like since 2013 and Odoo v6 -  this problems still wasn't fixed?

0

Priyesh Solanki (pso)

--Priyesh Solanki (pso)--
Priyesh Solanki (pso)
1110
| 2 2 4
--Priyesh Solanki (pso)--
Priyesh Solanki (pso)
On 4/12/13, 3:14 AM

You need to modify this method '_get_number_of_days', defined in hr.holidays object by using some datetime attributes that will exclude weekend from number of days.

Thanks, Priyesh Solanki

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 platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 4/11/13, 7:18 PM
Seen: 2949 times
Last updated: 6/30/15, 2:01 PM