Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

How can I configure 3 shifts per day in Odoo 17?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
4 Respostes
4659 Vistes
Avatar
Will A

I'm trying to set up a company that currently has 3 working shifts,

Shift 1: 0600-1400 hours

Shift 2: 1400-2200 hours

Shift 3: 2200-0600 hours

All shifts work 8 hours. A paid half hour lunch does not need to be identified as a break.


Currently Odoo by default only allows for a morning and afternoon shift, with another option for a break that I wont use. Only my morning and afternoon shifts, shifts 1 and 2, can be set up with templates. How do I account for the third shift? Is there a way to set up an evening shift either in base or in Studio that doesn't require I write some code? I can't be the only one that has a company that operates off of 24 hour operations.


Thanks

0
Avatar
Descartar
faOtools

Maybe this app - https://apps.odoo.com/apps/modules/18.0/itlibertas_timesheet - will partially solve the challenge.

Will A
Autor

Thanks faOtools, but I am trying to do this in version 17. I appreciate the link! I'll keep it in mind for V18.

Avatar
Will A
Autor Best Answer

Hi All, I did end up coming finding a work-around. Unfortunately, I am not able to use the shift templates as I had hoped. Hopefully a future version of Odoo will allow us to configure 24-hour operations in the shift templates. 

What I ended up doing was completely ignoring the shift templates and manually inputting the shifts in the Planning app. This is a lot more manual work than I would like to do but it will work for now. 

I was able to make the process quicker by using the duplicate feature, i.e. pressing the ctrl button and then dragging the scheduled shift to the next line. I was then able to repeat this every week since the shift will stay the same as long as they work here. 

What I don't like now is that Odoo automatically changes the hours based on when Daylight Savings begins and ends. One more thing to try to figure out. I'll do my own preliminary research before asking for help here though.

---UPDATE---

While looking at the Planning documentation, I noticed it says, "Company working hours: Are taken into account when assigning shifts to employees or materials." This was specifically talking about when resources could be used, but I thought I would try updating the company working hours and not just the employee working hours. This may have been what Saif Sabri's AI-generated response may have been hinting at, but it wasn't specific enough to get me to the finish line. 

I updated the company working hours to 2 different shifts (morning/afternoon) covering a full 24 hours. I then went back and tried creating shift templates for the three different shifts and didn't have a single issue! Time worked and end of shift all calculated exactly as I hoped it would. I was then able to use these shift templates for planning purposes and had no issues. 

So, to sum up...

If you want to enable 24-hour Ops, go to Settings → Employees → Company Working Hours, and then create a Company Working Hour schedule that covers the time period that your company actually has employees at the facility working to be able to set up those shift templates. 

0
Avatar
Descartar
Avatar
Saif Sabri
Best Answer

My response was crafted with AI assistance, tailored to provide detailed and actionable guidance for your query.

In Odoo 17, you can configure multiple shifts for a 24-hour operation by customizing the Working Hours and Shifts settings. While Odoo's default setup allows for morning and afternoon shifts, you can extend this to include a third shift (evening/night shift) without writing custom code. Here's how you can do it:

Step 1: Configure Working Hours

  1. Go to Settings > Employees > Working Hours.
  2. Create a new working time entry:
    • Name: 24-Hour Operation
    • Set the working hours for each shift:
      • Shift 1: 06:00 to 14:00
      • Shift 2: 14:00 to 22:00
      • Shift 3: 22:00 to 06:00 (next day)
  3. Save the working hours configuration.

Step 2: Create Shift Templates

  1. Go to Employees > Configuration > Shifts.
  2. Create three shift templates:
    • Shift 1 Template:
      • Name: Shift 1 (06:00-14:00)
      • Working Hours: Select the 06:00-14:00 time slot.
    • Shift 2 Template:
      • Name: Shift 2 (14:00-22:00)
      • Working Hours: Select the 14:00-22:00 time slot.
    • Shift 3 Template:
      • Name: Shift 3 (22:00-06:00)
      • Working Hours: Select the 22:00-06:00 time slot.

Step 3: Assign Shifts to Employees

  1. Go to Employees > Employees.
  2. Select an employee and assign them to a shift:
    • Under the Work Information tab, set the Working Hours to the appropriate shift template (e.g., Shift 1 (06:00-14:00)).
  3. Repeat this for all employees, assigning them to their respective shifts.

Step 4: Handle the Night Shift (22:00-06:00)

For the night shift (Shift 3), Odoo will automatically handle the transition to the next day. Ensure that:

  • The working hours for Shift 3 are set as 22:00-06:00.
  • The system recognizes the shift as spanning two days.

Step 5: Use Studio for Advanced Customization (Optional)

If you need more flexibility (e.g., adding shift-specific rules or fields), you can use Odoo Studio:

  1. Go to Settings > Technical > Studio.
  2. Customize the Shifts model to add fields like:
    • Shift-specific pay rates.
    • Shift-specific attendance rules.
  3. Save your changes and test the new configuration.

Step 6: Test the Configuration

  • Go to Attendances and check if the shifts are correctly logged.
  • Ensure that employees can clock in and out according to their assigned shifts.

Key Notes

  • Odoo's default setup does not natively support three shifts, but by creating custom working hours and shift templates, you can achieve this.
  • If you need more advanced features (e.g., automated shift scheduling), consider using the Odoo Shifts module or a third-party app from the Odoo App Store.

By following these steps, you can configure three shifts per day in Odoo 17 without writing custom code.



1
Avatar
Descartar
Will A
Autor

Thanks Saif Sabri for the AI answer, but version 17 will not let me set working hours to automatically cross from one day to the next. I might have to work with my team to write some code for this to happen.

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

Please refer to the following links:

1. https://www.youtube.com/watch?v=xNf23Lv-Viw

2. https://www.youtube.com/watch?v=Xj9DGgQQ_t0

3. https://www.youtube.com/watch?v=o6BPck13VeU

4. https://www.cybrosys.com/blog/how-to-manage-plan-and-access-shift-in-odoo-16-planning-app

5. https://www.cybrosys.com/blog/how-to-manage-employee-schedules-with-odoo-17-planning-app


Hope it helps.

0
Avatar
Descartar
Avatar
Marcin Pieczyński
Best Answer

Hi Every Body

I have also face the same problem. Your solution looks good.
But  I was unable to obtain the same result in Odoo 16-18.
To be precise, I was unable to introduce w shift overnight  from 22pm to 6 am (22:00 - 6:00 next day)
In Odoo core code there is a method which check if  hour_to is after hour_from, if its not, hour_to is changed.
So, when I have introduced shift from 22:00, and tried to put hour_to (6:00) Odoo automatically changed hour_to to 22.
I don't see possibility to mark this shift as 'overnight' or with the end in the next day.

How Odoo is able to recognize that the shift is spanning two days?

Below code comes from Odoo16, and is the same in Odoo18.



Marcin Pieczyński

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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