Hello everyone,
I’m facing an issue with Planning and Work Entries in Odoo and I need some guidance.
Setup details:
- I am using Planning app with shifts.
Working hours are defined as 3 shifts per day:
- 00:00 → 08:00
- 08:00 → 16:00
- 16:00 → 00:00
- Employee timezone, company timezone, and user timezone are all set to Africa/Cairo.
- Work Entries are generated automatically from Planning slots.
The issue:
When I create a single 8-hour shift in Planning (e.g. 08:00 → 16:00), Odoo generates multiple Work Entries instead of one.
For example:
One shift (8 hours) is split into:
- 04:00 hours on one day
- 12:00 hours on another day
In some cases, even a single shift gets split across two days.
What I tried:
- Adjusting working schedules
- Removing break lines
- Changing 24-hour schedule to fixed shifts
- Ensuring timezone consistency (Africa/Cairo)
- Attempting automation rules to generate Work Entries manually
However, Odoo still splits the Work Entries.
Expected behavior:
Each Planning shift should generate exactly one Work Entry with the same start and end datetime (8 hours total) without splitting across days.
Question:
What is the correct configuration or customization needed to prevent Work Entries from being split across days in Planning?
Is this related to:
- Working schedules?
- Timezone conversion?
- hr_work_entry_planning module logic?
- Or do I need to override _generate_work_entries()?
Any guidance would be appreciated.