Hr_holidays : value of 'Leaves already taken ' not correct

Bug #502984 reported by forstera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

when I create a new holiday for an employee, the value of Leaves already taken and Remaining Leaves are displayed correctly. Now, If I decide to delete the holiday I just created for that employee, the field Remaining Leaves is updated but the the field Leaves already taken is not updated, so the displayed value is not correct any more ...

Thanks

Related branches

Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thank you for reporting Arnaud.

Normally, only the draft/cancelled records should be deleted.

It would be better to make the 'Leaves already taken' and 'Remaining Leaves' fields functional fields. We will improve it in the next version.

Currently,It has been improved in stable by revision 2513 <email address hidden>.

Thank you.

Changed in openobject-addons:
status: Confirmed → Fix Released
Revision history for this message
forstera (arnaud-forster-deactivatedaccount) wrote :

Hello,
I just updated my hr and hr.holidays modules but I still have this problem ...
thanks

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Arnaud,

I have checked with the latest addons rev : 2760

On the deletion of the "Employee Holidays" that had been created,
"My Holidays Request Refused" and "My Holidays Request Validated" are directly updated.

It has been already fixed by the rev no 2513. Also, this problem no longer exists at our end.
Would you please update the code and re-check?

Thanks.

Revision history for this message
forstera (arnaud-forster-deactivatedaccount) wrote :

Hello JMA,

Thanks for your help. In fact, data entered before the modification of the module were generating the problem. I had to manually dit the tables to correct the problems.
Now the problem doesn't occurs anymore with new entries

Thanks for your help

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.