This question has been flagged
3 Replies
3551 Views

Hello, dear members of the Odoo community.


We have noticed a strange behavior for non-full time employees (= part-time employees), and we hope that some experts could bring us some light.


Let me state first that we know that time differences may cause some issues, so we have set up the time zones, public holidays and working schedules correctly for each employee. 

As an example of the issue, let's try to take one week of vacation and set up a Paid Time Off request from Feb 22 to Feb 28 of this year (2021).


a) Full-time employee : the leave calculation works well, 5 days are deducted (Monday to Friday).

b) Employee at 80% rate, being off on a given day, ex every Wednesdays :  the leave calculation works well, 4 days are deducted. (Of course, the allocation should be 80% of what a full time employee should get).

c) Employee at 90% rate, being off one half-day per week, ex every Wednesday afternoon : the leave calculation calculates 5 days deducted instead of 4.5.

d) in an extreme case, an employee at 50% working only in the mornings, the leave calculation will calculate 5 days instead of 2.5. That's a 100% increase :-( 


What is curious, is that if I activate the "calculate per hour" in the "Paid Time Off" type, the calculation of the number of hours is correct, but the number of days is not.


Here are the options that we have considered so far :

d) Using the number of hours. Frankly, this is not really an option, as all the other displays are based on a per Day basis (in the employee tab for exemple), so it would be super confusing for everybody.


e) Giving a different Time Off allocation to different employees. This seems instinctively the proper way to do it, but we struggle. We normally allocate 25 days to all full time employees, we can give 12.5 days to 50% rate employees, no problem. However, what should we do for example c) ? This employee should normally get 90%*25=22.5 days allocated per year. If the employee chooses to take all Wednesdays mornings as paid time off (on top of his unpaid afternoons), he can only get 22 leaves, while normally he should be able to get 45 leaves. He is screwed. And we cannot make an allocation of 45 days, if the employee uses them on Mondays, he will get much more than what is granted, the company is screwed !


Am I missing something ? I'm sure that someone should have the solution as I can't believe that we are the only company in the world using part-time employees, especially in this time of Covid.

We are running Odoo13CE, but we have noticed the same issue on odoo 13 & 14  enterprise on the runbot.


Thanks,


David

Avatar
Discard
Author

I should add that specifying the "Calculate in half-days" in the "Paid Time Off" type does not help.

It's like if the duration is always rounded as an Integer, even if it's supposed to be a Float.

Have you already adjusted the working hours?

A person who works 40 hours a week gets 5 days off/40 hours off and a person who works 20 hours also gets a week off, but only 20 hours!

##- Please type your reply above this line -##

Guten Tag Catchall,

vielen Dank für Ihre Nachricht.

Wir werden uns schnellstmöglich mit Ihnen in Verbindung setzen.

Bitte beachten Sie, dass wir bei sehr spezifischen Produktanfragen ggf. etwas mehr Zeit benötigen, um diese zu recherchieren.

Viele Grüße,
Ihr Kundenservice von Sunday Natural

Um zusätzliche Nachrichten an uns zu senden, antworten Sie bitte wieder auf diese E-Mail (549229).

Sunday.de

  • Sunday Natural Products GmbH, Potsdamer Straße 83, 10785 Berlin
  • Geschäftsführer: Robert Bosch, Anja Graw, Szymon Zwierzynski, Mathias Trilk, Roman Huber, Raimund Reisinger
  • AG Berlin-Charlottenburg: HRB 152621 B, Öko-Kontrollstelle DE-ÖKO-001
  • Kontoinhaber: Sunday Natural Products GmbH
  • Kontonummer: 1226403800
  • BLZ: 43060967
  • Kreditinstitut: GLS Gemeinschaftsbank eG
  • SWIFT: GENODEM1GLS
  • IBAN: DE77430609671226403800
[XQLKG3-7RDKQ]
##- Please type your reply above this line -##

Ihre Anfrage (549229) wurde aktualisiert. Um zusätzliche Kommentare hinzuzufügen, antworten Sie auf diese E-Mail.

Catchall

15 Aug 2022, 10:59 CEST

Catchall

15 Aug 2022, 10:57 CEST

Sunday.de

  • Sunday Natural Products GmbH, Potsdamer Straße 83, 10785 Berlin
  • Geschäftsführer: Robert Bosch, Anja Graw, Szymon Zwierzynski, Mathias Trilk, Roman Huber, Raimund Reisinger
  • AG Berlin-Charlottenburg: HRB 152621 B, Öko-Kontrollstelle DE-ÖKO-001
  • Kontoinhaber: Sunday Natural Products GmbH
  • Kontonummer: 1226403800
  • BLZ: 43060967
  • Kreditinstitut: GLS Gemeinschaftsbank eG
  • SWIFT: GENODEM1GLS
  • IBAN: DE77430609671226403800
[XQLKG3-7RDKQ]
##- Please type your reply above this line -##

Ihre Anfrage (549229) wurde aktualisiert. Um zusätzliche Kommentare hinzuzufügen, antworten Sie auf diese E-Mail.

Catchall

15 Aug 2022, 11:00 CEST

Catchall

15 Aug 2022, 10:59 CEST

Catchall

15 Aug 2022, 10:57 CEST

Sunday.de

  • Sunday Natural Products GmbH, Potsdamer Straße 83, 10785 Berlin
  • Geschäftsführer: Robert Bosch, Anja Graw, Szymon Zwierzynski, Mathias Trilk, Roman Huber, Raimund Reisinger
  • AG Berlin-Charlottenburg: HRB 152621 B, Öko-Kontrollstelle DE-ÖKO-001
  • Kontoinhaber: Sunday Natural Products GmbH
  • Kontonummer: 1226403800
  • BLZ: 43060967
  • Kreditinstitut: GLS Gemeinschaftsbank eG
  • SWIFT: GENODEM1GLS
  • IBAN: DE77430609671226403800
[XQLKG3-7RDKQ]
##- Please type your reply above this line -##

Ihre Anfrage (549229) wurde aktualisiert. Um zusätzliche Kommentare hinzuzufügen, antworten Sie auf diese E-Mail.

Catchall

15 Aug 2022, 11:02 CEST

Catchall

15 Aug 2022, 11:00 CEST

Catchall

15 Aug 2022, 10:59 CEST

Catchall

15 Aug 2022, 10:57 CEST

Sunday.de

  • Sunday Natural Products GmbH, Potsdamer Straße 83, 10785 Berlin
  • Geschäftsführer: Robert Bosch, Anja Graw, Szymon Zwierzynski, Mathias Trilk, Roman Huber, Raimund Reisinger
  • AG Berlin-Charlottenburg: HRB 152621 B, Öko-Kontrollstelle DE-ÖKO-001
  • Kontoinhaber: Sunday Natural Products GmbH
  • Kontonummer: 1226403800
  • BLZ: 43060967
  • Kreditinstitut: GLS Gemeinschaftsbank eG
  • SWIFT: GENODEM1GLS
  • IBAN: DE77430609671226403800
[XQLKG3-7RDKQ]
##- Please type your reply above this line -##

Ihre Anfrage (549229) wurde aktualisiert. Um zusätzliche Kommentare hinzuzufügen, antworten Sie auf diese E-Mail.

Catchall

15 Aug 2022, 11:04 CEST

Catchall

15 Aug 2022, 11:02 CEST

Catchall

15 Aug 2022, 11:00 CEST

Catchall

15 Aug 2022, 10:59 CEST

Catchall

15 Aug 2022, 10:57 CEST

Sunday.de

  • Sunday Natural Products GmbH, Potsdamer Straße 83, 10785 Berlin
  • Geschäftsführer: Robert Bosch, Anja Graw, Szymon Zwierzynski, Mathias Trilk, Roman Huber, Raimund Reisinger
  • AG Berlin-Charlottenburg: HRB 152621 B, Öko-Kontrollstelle DE-ÖKO-001
  • Kontoinhaber: Sunday Natural Products GmbH
  • Kontonummer: 1226403800
  • BLZ: 43060967
  • Kreditinstitut: GLS Gemeinschaftsbank eG
  • SWIFT: GENODEM1GLS
  • IBAN: DE77430609671226403800
[XQLKG3-7RDKQ]
##- Please type your reply above this line -##

Ihre Anfrage (549229) wurde aktualisiert. Um zusätzliche Kommentare hinzuzufügen, antworten Sie auf diese E-Mail.

Catchall

15 Aug 2022, 11:06 CEST

Catchall

15 Aug 2022, 11:04 CEST

Catchall

15 Aug 2022, 11:02 CEST

Catchall

15 Aug 2022, 11:00 CEST

Catchall

15 Aug 2022, 10:59 CEST

Catchall

15 Aug 2022, 10:57 CEST

Sunday.de

  • Sunday Natural Products GmbH, Potsdamer Straße 83, 10785 Berlin
  • Geschäftsführer: Robert Bosch, Anja Graw, Szymon Zwierzynski, Mathias Trilk, Roman Huber, Raimund Reisinger
  • AG Berlin-Charlottenburg: HRB 152621 B, Öko-Kontrollstelle DE-ÖKO-001
  • Kontoinhaber: Sunday Natural Products GmbH
  • Kontonummer: 1226403800
  • BLZ: 43060967
  • Kreditinstitut: GLS Gemeinschaftsbank eG
  • SWIFT: GENODEM1GLS
  • IBAN: DE77430609671226403800
[XQLKG3-7RDKQ]
##- Please type your reply above this line -##

Ihre Anfrage (549229) wurde aktualisiert. Um zusätzliche Kommentare hinzuzufügen, antworten Sie auf diese E-Mail.

Catchall

15 Aug 2022, 11:08 CEST

Catchall

15 Aug 2022, 11:06 CEST

Catchall

15 Aug 2022, 11:04 CEST

Catchall

15 Aug 2022, 11:02 CEST

Catchall

15 Aug 2022, 11:00 CEST

Catchall

15 Aug 2022, 10:59 CEST

Catchall

15 Aug 2022, 10:57 CEST

Sunday.de

  • Sunday Natural Products GmbH, Potsdamer Straße 83, 10785 Berlin
  • Geschäftsführer: Robert Bosch, Anja Graw, Szymon Zwierzynski, Mathias Trilk, Roman Huber, Raimund Reisinger
  • AG Berlin-Charlottenburg: HRB 152621 B, Öko-Kontrollstelle DE-ÖKO-001
  • Kontoinhaber: Sunday Natural Products GmbH
  • Kontonummer: 1226403800
  • BLZ: 43060967
  • Kreditinstitut: GLS Gemeinschaftsbank eG
  • SWIFT: GENODEM1GLS
  • IBAN: DE77430609671226403800
[XQLKG3-7RDKQ]
##- Please type your reply above this line -##

Ihre Anfrage (549229) wurde aktualisiert. Um zusätzliche Kommentare hinzuzufügen, antworten Sie auf diese E-Mail.

Catchall

15 Aug 2022, 11:10 CEST

Catchall

15 Aug 2022, 11:08 CEST

Catchall

15 Aug 2022, 11:06 CEST

Catchall

15 Aug 2022, 11:04 CEST

Catchall

15 Aug 2022, 11:02 CEST

Catchall

15 Aug 2022, 11:00 CEST

Catchall

15 Aug 2022, 10:59 CEST

Catchall

15 Aug 2022, 10:57 CEST

Sunday.de

  • Sunday Natural Products GmbH, Potsdamer Straße 83, 10785 Berlin
  • Geschäftsführer: Robert Bosch, Anja Graw, Szymon Zwierzynski, Mathias Trilk, Roman Huber, Raimund Reisinger
  • AG Berlin-Charlottenburg: HRB 152621 B, Öko-Kontrollstelle DE-ÖKO-001
  • Kontoinhaber: Sunday Natural Products GmbH
  • Kontonummer: 1226403800
  • BLZ: 43060967
  • Kreditinstitut: GLS Gemeinschaftsbank eG
  • SWIFT: GENODEM1GLS
  • IBAN: DE77430609671226403800
[XQLKG3-7RDKQ]
##- Please type your reply above this line -##

Ihre Anfrage (549229) wurde aktualisiert. Um zusätzliche Kommentare hinzuzufügen, antworten Sie auf diese E-Mail.

Catchall

15 Aug 2022, 11:12 CEST

Catchall

15 Aug 2022, 11:10 CEST

Catchall

15 Aug 2022, 11:08 CEST

Catchall

15 Aug 2022, 11:06 CEST

Catchall

15 Aug 2022, 11:04 CEST

Catchall

15 Aug 2022, 11:02 CEST

Catchall

15 Aug 2022, 11:00 CEST

Catchall

15 Aug 2022, 10:59 CEST

Catchall

15 Aug 2022, 10:57 CEST

Sunday.de

  • Sunday Natural Products GmbH, Potsdamer Straße 83, 10785 Berlin
  • Geschäftsführer: Robert Bosch, Anja Graw, Szymon Zwierzynski, Mathias Trilk, Roman Huber, Raimund Reisinger
  • AG Berlin-Charlottenburg: HRB 152621 B, Öko-Kontrollstelle DE-ÖKO-001
  • Kontoinhaber: Sunday Natural Products GmbH
  • Kontonummer: 1226403800
  • BLZ: 43060967
  • Kreditinstitut: GLS Gemeinschaftsbank eG
  • SWIFT: GENODEM1GLS
  • IBAN: DE77430609671226403800
[XQLKG3-7RDKQ]
##- Please type your reply above this line -##

Ihre Anfrage (549229) wurde aktualisiert. Um zusätzliche Kommentare hinzuzufügen, antworten Sie auf diese E-Mail.

Catchall

15 Aug 2022, 11:13 CEST

Catchall

15 Aug 2022, 11:12 CEST

Catchall

15 Aug 2022, 11:10 CEST

Catchall

15 Aug 2022, 11:08 CEST

Catchall

15 Aug 2022, 11:06 CEST

Catchall

15 Aug 2022, 11:04 CEST

Catchall

15 Aug 2022, 11:02 CEST

Catchall

15 Aug 2022, 11:00 CEST

Catchall

15 Aug 2022, 10:59 CEST

Catchall

15 Aug 2022, 10:57 CEST

Sunday.de

  • Sunday Natural Products GmbH, Potsdamer Straße 83, 10785 Berlin
  • Geschäftsführer: Robert Bosch, Anja Graw, Szymon Zwierzynski, Mathias Trilk, Roman Huber, Raimund Reisinger
  • AG Berlin-Charlottenburg: HRB 152621 B, Öko-Kontrollstelle DE-ÖKO-001
  • Kontoinhaber: Sunday Natural Products GmbH
  • Kontonummer: 1226403800
  • BLZ: 43060967
  • Kreditinstitut: GLS Gemeinschaftsbank eG
  • SWIFT: GENODEM1GLS
  • IBAN: DE77430609671226403800
[XQLKG3-7RDKQ]
##- Please type your reply above this line -##

Ihre Anfrage (549229) wurde aktualisiert. Um zusätzliche Kommentare hinzuzufügen, antworten Sie auf diese E-Mail.

Catchall

15 Aug 2022, 11:14 CEST

Catchall

15 Aug 2022, 11:13 CEST

Catchall

15 Aug 2022, 11:12 CEST

Catchall

15 Aug 2022, 11:10 CEST

Catchall

15 Aug 2022, 11:08 CEST

Catchall

15 Aug 2022, 11:06 CEST

Catchall

15 Aug 2022, 11:04 CEST

Catchall

15 Aug 2022, 11:02 CEST

Catchall

15 Aug 2022, 11:00 CEST

Catchall

15 Aug 2022, 10:59 CEST

Catchall

15 Aug 2022, 10:57 CEST

Sunday.de

  • Sunday Natural Products GmbH, Potsdamer Straße 83, 10785 Berlin
  • Geschäftsführer: Robert Bosch, Anja Graw, Szymon Zwierzynski, Mathias Trilk, Roman Huber, Raimund Reisinger
  • AG Berlin-Charlottenburg: HRB 152621 B, Öko-Kontrollstelle DE-ÖKO-001
  • Kontoinhaber: Sunday Natural Products GmbH
  • Kontonummer: 1226403800
  • BLZ: 43060967
  • Kreditinstitut: GLS Gemeinschaftsbank eG
  • SWIFT: GENODEM1GLS
  • IBAN: DE77430609671226403800
[XQLKG3-7RDKQ]
Best Answer

Hello @nick Dech, did you get an answer on your issue report? Could you tell us its reference?

Thanks

Avatar
Discard
Best Answer

Hi David 

Were you able to solve this properly? We have the same issue, and in my opinion this is clearly an application bug. Did you raise this as a bug with Odoo already?


Edit: I opened a bug and the Odoo Team is looking into this


Thanks 

Nick

Avatar
Discard
Author Best Answer

Well, by the lack of answer it seems that this case is not very common. Will continue to search for a solution.

Avatar
Discard

Hello, did you find a solution?

Author

Unfortunately, no. I have been told this is the normal behavior of Odoo, but it's very counterintuitive for users, so in the end we ask them to break their vacation weeks in multiple differents days and half-days vacation. Quite annoying :-( .