← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 674569] Re: Overlapping holidays in hr_holidays

 

Just for the record, I wanted to confirm what I already said to Neobis,
as vra's closing comment was not very clear (the reason is missing in
the comment)

This bug report is not a bug but a feature request, and one we think makes little sense for the future.
It would make Leave Management much more complicated for Human Resource departments, as they would need to de-duplicate the leave requests when sending the list of leaves taken by employees to authorities or payroll services, etc.

Also, as the original description mentions, this may happen as an
accident and silently ignoring duplicate days would have people making
more mistakes, without even noticing... because employees never plan or
think in terms of overlapping leaves.


Note: However, a related and I think sensible thing would be to allow _combining_ (not overlapping) several types of leaves in a single leave request. This would require a major refactoring of leaves requests, but could be a good idea after 6.0. Feel free to open a wishlist bug for that.

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

Title:
  Overlapping holidays in hr_holidays

Status in OpenObject Addons Modules:
  Won't Fix

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





References