Running Odoo 12-20190924 (Community Edition)
I have 3 shifts:
4 Hours, 1 hour lunch, 4 hours
1st: 8:00-17:00
2nd: 16:00-1:00
3rd: 0:00-9:00
The 1st and 3rd shift work fine for leaves, but as the 2nd spans over midnight, I can get it to play nice with leaves.
Name | Day of the Week | Work From | Work to | Day Period |
Monday Morning | Monday | 16:00 | 20:00 | Morning |
Monday Afternoon 1 | Monday | 21:00 | 23:59 | Afternoon |
Monday Afternoon 2 | Tuesday | 0:00 | 1:00 | Afternoon |
Setup this way it correctly calculates Average hour per day of 8.00.
However when trying to request a leave that is handled by hour, I get 6.98 hours, not 8.00.
If I use Custom hours, then you only get to pick one day, not a start datetime to an end datetime.
How do others handle Working Times that span days? I have looked at docs and for mods, but nothing seems to address this issue. The hr.leave model seems to use datetime for date_from and date_to. Do I have make changes to the hr.leave.view.form to show the date_from and date_to?
Any input or suggestions are welcome.
Thanks
Scott