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

[FW][FIX] resource: update default calendar timezone on first admin login (follow-up) #162498

Commits on Apr 18, 2024

  1. [FIX] resource: update default calendar timezone on first admin login…

    … (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
    deneuvillem committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    566998f View commit details
    Browse the repository at this point in the history