Odoo Help

0

Exclude weekend from number of days in Leave Requests

By
Helmi Ghribi
on 4/11/13, 7:18 PM 3,374 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)--
Tiny ERP Pvt Ltd
http://www.odoo.com
1130
| 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

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: 3374 times
Last updated: 6/30/15, 2:01 PM