Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] resource: update default calendar timezone on first admin login #84258

Conversation

MissingNoShiny
Copy link
Contributor

When the admin user logs in for the first time, their timezone can be updated based on the cookies of their browser.
In such case, the timezone of the default working calendar should be updated too.

Related: #83262

Task 2759592

@robodoo
Copy link
Contributor

robodoo commented Feb 9, 2022

@C3POdoo C3POdoo added the RD research & development, internal work label Feb 9, 2022
When the admin user logs in for the first time, their timezone can be updated based on the cookies of their browser.
In such case, the timezone of the default working calendar should be updated too.

Related: odoo#83262

Task 2759592
@MissingNoShiny MissingNoShiny force-pushed the 15.0-resource-calendar-tz-admin-login-vila branch from cbd822e to 895e6bf Compare February 21, 2022 07:18
@tivisse
Copy link
Contributor

tivisse commented Mar 23, 2022

@robodoo r+

@robodoo robodoo closed this in 3297ffd Mar 23, 2022
@robodoo robodoo temporarily deployed to merge March 23, 2022 08:57 Inactive
@fw-bot fw-bot deleted the 15.0-resource-calendar-tz-admin-login-vila branch April 6, 2022 09:46
deneuvillem added a commit to odoo-dev/odoo that referenced this pull request Mar 13, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: odoo#84258

task-3793313
robodoo pushed a commit that referenced this pull request Apr 18, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: #84258

task-3793313

closes #157583

Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
fw-bot pushed a commit to odoo-dev/odoo that referenced this pull request Apr 18, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: odoo#84258

task-3793313

X-original-commit: b280a9b
fw-bot pushed a commit to odoo-dev/odoo that referenced this pull request Apr 18, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: odoo#84258

task-3793313

X-original-commit: b280a9b
fw-bot pushed a commit to odoo-dev/odoo that referenced this pull request Apr 18, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: odoo#84258

task-3793313

X-original-commit: b280a9b
fw-bot pushed a commit to odoo-dev/odoo that referenced this pull request Apr 18, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: odoo#84258

task-3793313

X-original-commit: b280a9b
fw-bot pushed a commit to odoo-dev/odoo that referenced this pull request Apr 18, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: odoo#84258

task-3793313

X-original-commit: b280a9b
fw-bot pushed a commit to odoo-dev/odoo that referenced this pull request Apr 19, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: odoo#84258

task-3793313

X-original-commit: b280a9b
fw-bot pushed a commit to odoo-dev/odoo that referenced this pull request Apr 19, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: odoo#84258

task-3793313

X-original-commit: b280a9b
robodoo pushed a commit that referenced this pull request Apr 22, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: #84258

task-3793313

closes #162498

X-original-commit: b280a9b
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
robodoo pushed a commit that referenced this pull request Apr 22, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: #84258

task-3793313

closes #162471

X-original-commit: b280a9b
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
robodoo pushed a commit that referenced this pull request Apr 22, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: #84258

task-3793313

closes #162541

X-original-commit: b280a9b
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
robodoo pushed a commit that referenced this pull request Apr 22, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: #84258

task-3793313

closes #162571

X-original-commit: b280a9b
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
robodoo pushed a commit that referenced this pull request Apr 22, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: #84258

task-3793313

closes #162561

X-original-commit: b280a9b
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
robodoo pushed a commit that referenced this pull request Apr 22, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: #84258

task-3793313

closes #162518

X-original-commit: b280a9b
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
robodoo pushed a commit that referenced this pull request Apr 22, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: #84258

task-3793313

closes #162531

X-original-commit: b280a9b
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
willylohws pushed a commit to willylohws/odoo that referenced this pull request May 1, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: odoo#84258

task-3793313

closes odoo#162531

X-original-commit: b280a9b
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
willylohws pushed a commit to willylohws/odoo that referenced this pull request May 1, 2024
… (follow-up)

Steps to reproduce:
-------------------
1. Install the resource module without demo data (or install any module which depends on it, again without demo data).
2. Login with the administrator user for the first time.
3. The default resource calendar (e.g. "Standard 40 hours/week") timezone will be set to 'UTC' by default
while it should be set to the timezone of the administrator.

Fix:
-------------------
When there is no demo data, no resource_calendar_id is linked to the admin.
In this case, we need to retrieve the record of the default working calendar and
set its timezone to the one of the admin user on the first login.

This is a follow-up of this fix: odoo#84258

task-3793313

closes odoo#157583

Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants