← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 674569] [NEW] Overlapping holidays in hr_holidays

 

Public bug reported:

[revno 3907]

When adding holidays, the object does check for overlaps. For example, if I have an employee which is allowed 5 days off this year, he might want to use them on the following dates:
15-11-2010 ----- 19-11-2010 (= 5 days)

This works, but when you (accidently) also plan a vacation on the following dates:
16-11-2010 ----- 18-11-2010 (= 3 days)
then OpenERP will complain that you do not have enough days to take, while the second dates are actually in the first days off. 

This goes for the other overlaps as well, for example:
15-11-2010 ----- 17-11-2010
and
16-11-2010 ----- 19-11-2010

OpenERP should off course check if any overlaps occur and then subtract
the days that were already taken from the new days.

Used platform:
- OpenERP 6.0 [revno: 3003]
- Ubuntu server

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
Overlapping holidays in hr_holidays
https://bugs.launchpad.net/bugs/674569
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: New

Bug description:
[revno 3907]

When adding holidays, the object does check for overlaps. For example, if I have an employee which is allowed 5 days off this year, he might want to use them on the following dates:
15-11-2010 ----- 19-11-2010 (= 5 days)

This works, but when you (accidently) also plan a vacation on the following dates:
16-11-2010 ----- 18-11-2010 (= 3 days)
then OpenERP will complain that you do not have enough days to take, while the second dates are actually in the first days off. 

This goes for the other overlaps as well, for example:
15-11-2010 ----- 17-11-2010
and
16-11-2010 ----- 19-11-2010

OpenERP should off course check if any overlaps occur and then subtract the days that were already taken from the new days.

Used platform:
- OpenERP 6.0 [revno: 3003]
- Ubuntu server





Follow ups

References