Skip to Content
Menu
This question has been flagged
1 Reply
3981 Views

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


Avatar
Discard
Best Answer

Hi Scott,

I hope this message finds you well. I came across your post regarding the shift that spans two days, I wanted to check in and see if you have found a solution or any progress on this issue. Any insights you could share would be greatly appreciated, as I am currently stuck with the same configuration.

Thank you!


Avatar
Discard
Related Posts Replies Views Activity
1
Nov 22
1607
0
Nov 22
1079
1
Feb 22
1903
2
Mar 21
910
1
Apr 24
3114