← Back to team overview

openerp-expert-service team mailing list archive

[Bug 540946] Re: HR_Holidays - Declare negative days

 

Hello Ludora,

Yes, the patch is the outcome of the diff command.

If you are unable to apply the patch, you may replace hr.py with the
file in the attachment.

I hope this helps you.

Let me know if you have nay further queries.

Thanks.

** Attachment added: "hr.py"
   https://bugs.launchpad.net/openobject-addons/+bug/540946/+attachment/1690778/+files/hr.py

-- 
HR_Holidays - Declare negative days
https://bugs.launchpad.net/bugs/540946
You received this bug notification because you are a member of OpenERP
Services Experts, which is a direct subscriber.

Status in OpenObject Addons Modules: In Progress

Bug description:
Hi!

In th hr_holidays addon, it's indicate:
- An employee can make a negative holiday request (holiday request of -2 days for example), this is considered by the system as an ask for more off-days. It will increase his total of that holiday status available (if the request is accepted).

Despite of this description, I tested this function and I have an error message when I demand -2 holiday, 18/03/2010 17:36:00 to 19/03/2010 09:37:00 .

The error message is:
> /home/ludo/Programmes/openerp-server-5.0.7/bin/osv/orm.py(927)_validate()
-> raise except_orm('ValidateError', '\n'.join(error_msgs))

______
Openerp server 5.0.7