Sari la conținut
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Property Management
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Toate postările Oameni Insigne
Etichete (Vezi tot)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Toate postările Oameni Insigne
Etichete (Vezi tot)
odoo accounting v14 pos v15
Despre acest forum
Suport

Work Entries are being split into multiple records instead of a single 8-hour shift-Odoo 19

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
payrollhuman_resourceworkentrywork entries
1 Răspunde
645 Vizualizări
Imagine profil
Abdallah Mahmoud

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.


0
Imagine profil
Abandonează
Imagine profil
Javier Garcia
Cel mai bun răspuns

This is almost certainly a timezone/UTC conversion issue, not a working schedule misconfiguration. Here's why and how to fix it:

Root cause: Odoo stores all datetimes internally in UTC. Africa/Cairo is UTC+2 (UTC+3 during DST). When you create a shift like 08:00–16:00 Cairo time, Odoo converts it to 06:00–14:00 UTC internally. The _generate_work_entries() logic in hr_work_entry_planning then intersects the planning slot against the working schedule lines; and if the working schedule is also defined in local time but compared in UTC, the boundaries don't align, causing the split.

Things to verify/fix:

  1. Working schedule timezone; Go to Payroll → Configuration → Working Schedules, open the schedule assigned to the employee, and check the Timezone field on it. It must be set to Africa/Cairo, not UTC. This is the most common cause.

  2. The 00:00 → 08:00 shift in your working schedule; In UTC, Cairo's midnight is 22:00 UTC (or 21:00 UTC during DST). This means that shift crosses a UTC date boundary, which is exactly what causes the split. Odoo's work entry generator splits entries at UTC midnight. You can't fully avoid this without a code override if you need true 24h coverage.

  3. For the 08:00–16:00 shift specifically; this should NOT be split if the working schedule timezone is correctly set to Africa/Cairo. If it still splits, regenerate work entries after fixing the timezone on the working schedule.

If the issue persists after fixing the timezone: The _generate_work_entries() method in hr_work_entry_planning does split entries at calendar day boundaries (UTC). You would need to override it in a custom module to prevent splitting, or open a bug report on https://github.com/odoo/odoo since this is a known edge case with non-UTC timezones and 24h shift schedules.

0
Imagine profil
Abandonează
Îți place discuția? Nu doar citi, alătură-te!

Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!

Înscrie-te
Postări similare Răspunsuri Vizualizări Activitate
Use search, browse and other ORM method in salary rule
payroll human_resource
Imagine profil
Imagine profil
1
oct. 17
4344
Employee leave approval in V11
payroll leaves human_resource
Imagine profil
Imagine profil
Imagine profil
Imagine profil
4
apr. 26
9235
BUG Report - HRM / HR System / Attendance
payroll attendance work entries
Imagine profil
0
mar. 25
2473
Payroll Payment
accounting payroll human_resource
Imagine profil
0
apr. 24
3152
Creating work schedule in HR module
payroll hr_payroll workentry
Imagine profil
Imagine profil
1
apr. 22
2572
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now