Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
291 Widoki

When creating or editing a time-off with custom hours it shows the message "The employee has a different timezone than yours! Here dates and times are displayed in the employee's timezone (UTC).". I create a time-off for myself. I changed my user and my employee in order to have the same time zone. Why keeps showing the message?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thanks STAFFINSIDE and Cybrosys. I tried also closing session and cleaning cache but the message is still there. As I'm using v18, I think the case is a bug, as mentioned by Cybrosys.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,


In Odoo’s Time Off app, the warning about different time zones appears when the system sees a mismatch between the employee’s timezone and the current user’s timezone. Even if you update both, Odoo checks them separately: the user’s timezone comes from Preferences, while the employee’s timezone is stored on the Employee record. If one is empty or still set to UTC, the system triggers the message.


This happens because Odoo compares the employee’s tz field directly with the user’s tz. If they don’t match exactly, or if the employee’s field is blank and defaults to UTC, you’ll still see the message. Clearing your cache and re-logging in helps reload settings, but if the warning persists even after both are set correctly, it may be due to a known bug in newer versions. In that case, the warning is harmless, though it can be patched by adjusting the logic in the hr_holidays module.



Hope it helps

Awatar
Odrzuć
Najlepsza odpowiedź

Hi Leandro,

That message appears when Odoo detects a mismatch between the User timezone and the Employee’s related timezone. Even if you set both to the same value, please check the following:

  1. User vs Employee link
    • Go to Employees > Your Employee Record > Work Information and make sure the “Related User” field is correctly linked to your user.
  2. Timezone field
    • The timezone must be set on the user record: Settings > Users & Companies > Users > Preferences (Timezone).
    • The employee record does not hold a separate timezone; it inherits from the related user.
  3. Refresh session
    • After changing the timezone, log out and back in (or clear your cache). Sometimes the old timezone context is still stored in your session.

If everything is aligned, the warning should disappear.

I hope this works for you!

Awatar
Odrzuć

STAFFINSIDE just posts AI generated answers. Useless in a forum.

Powiązane posty Odpowiedzi Widoki Czynność
1
sie 25
488
1
lip 25
805
1
lip 25
1071
2
maj 25
1692
1
lip 25
1396