Worked day calculation in Payroll
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP R&D Addons Team 3 |
Bug Description
We allow the employees create their leave request in hours by inputting the "Number of Days" field with a float number, 0.5 for example. But in hr_payroll module, it will be calculated as one full day which is not correct.
I think the problem is in the get_worked_
The number_of_days and number_of_hours should be the actual value in the leave request.
tags: | added: hr payroll |
Hello Sean,
Yes You are right, If you select the same day on leave request based on hours then It's calculate the 1 day. Also the Day field is float field, So you can easily edit it i.e 0.5.
Your suggestion is calculate this to automatically which is quite fine and I agree with you. But it's quite complex to manage it that's why currently I am considering as a good improvement and feature request.
That's why I am setting this as a "Wishlist'.
Thanks for the reporting!