Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
7549 Vistas

How to Caluculate Half day Leave in OpenERP 7, Employee taking leave for half day but it is calculating full day leave. ex. If i taking a leave for 20-12-2013 9.00 to 13.00, but the leave calculation is Full day leave. How to fix this.

Avatar
Descartar
Mejor respuesta

The below patch Fixed the Issues to show the days calculated in 0.5 based on From and To date.

https://gist.github.com/tejastank/5089560#file-hr_holidays_leave_correction-patch

Avatar
Descartar
Mejor respuesta

In the leaves management of OpenERP, the duration in dates is used for the calendar visualization, but the duration in days is used for everything else. This is what will be taken into account in the leaves analysis and in the total number of days off in the list view. The way you have to use this feature is by specifying the dates first, then by specifying the correct number of days.

In you example, after entering the dates and times, just change the duration in days to 0.5.

Avatar
Descartar
Autor

Thanks Fabrice Henrion, If I entering the value 0.5 in leave request form it is accepted, approve also accepted, but The payslip for the employee is leave taken leave 0.5 but OpenERP take one day fully, 0.5 is not taken in the payslip Woking day calculation. Is there any way to solve this.

I can't reproduce this. Can you provide a step-by-step procedure?

Autor

I creating Employee: Henrion Leave days:12 Days, I creating Leave Request to employee as Half of the day, ie 21-12-2013 9:00:00 to 21-12-2013 13:00:00 it is half of the day, I edited in Leave days 0.5, here it is saving fine. and Approval also fine. but i creating payslip for Henrion dated 1-12-2013 - 31-12-2013 when i select employee all the details are placed to particular fields, but check here i applied leave for half day and approval is half day only here it calculating full day. Notice that. How to solve this.

Publicaciones relacionadas Respuestas Vistas Actividad
1
oct 25
276
1
oct 25
466
1
sept 25
484
3
sept 25
672
1
ago 25
805