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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Try the this method of python,, Isoweekday() is a method of the DateTime class that tells the day of the given date. It returns an integer that corresponds to a particular day.
It seems like since 2013 and Odoo v6 - this problems still wasn't fixed?
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jul 17
|
3950 | ||
|
0
Mar 15
|
2645 | ||
|
3
Oct 22
|
3910 | ||
|
0
May 18
|
2591 | ||
|
1
Mar 15
|
3102 |