Skip to content

[19.0][MIG] resource_booking: Migration to 19.0#187

Open
tishmen wants to merge 6 commits into
OCA:19.0from
tishmen:19.0-mig-resource_booking-v2
Open

[19.0][MIG] resource_booking: Migration to 19.0#187
tishmen wants to merge 6 commits into
OCA:19.0from
tishmen:19.0-mig-resource_booking-v2

Conversation

@tishmen
Copy link
Copy Markdown

@tishmen tishmen commented Oct 19, 2025

Scope

  • resource_booking only

Summary

  • Migrate to Odoo 19 using the working feature branch code.
  • Context handling aligned with 19.0.
  • Asset paths are relative under and frontend bundles.
  • Temporary test dependency to web addon referenced via PR below.

Pre-commit

  • Verified locally; no additional changes applied here to keep parity with the feature branch.

Temporary dependency

  • Added a temporary reference in

    (root) to install from the PR ref, per OCA guidelines:

Tests
Command:

Result: 45 tests green locally.

Depends on:

OCA-git-bot and others added 4 commits October 19, 2025 18:38
…ctly

When using a booking type with a resource calendar that has a different time zone than the resource itself, the slots are returned with mixed time zones.
This commit normalizes the behavior and ensures that slots are always returned in the time zone of the booking type.

Steps to reproduce:

Create a resource with the time zone America/Guayaquil, and a calendar that starts from 06:00 to 15:00.

Create a resource booking type with a new calendar that starts from 09:00 to 16:00, and set the time zone to Europe/Madrid.

Before this commit, the slot displayed in the portal was 06:00, but it should have been 12:00.
After this commit, the slot is displayed in the correct time zone (Madrid) at 12:00.

Note: The 06:00 in America/Guayaquil corresponds to 12:00 in Madrid standard time, not during daylight saving time. The tests use a freeze date in February.
@tishmen
Copy link
Copy Markdown
Author

tishmen commented Oct 19, 2025

Supersedes #182 to preserve history per OCA 19.0 migration process.

@tishmen tishmen mentioned this pull request Oct 19, 2025
1 task
@tishmen
Copy link
Copy Markdown
Author

tishmen commented Oct 19, 2025

Added temporary dependency in test-requirements.txt to OCA/web#3306 (web_calendar_slot_duration) per OCA guidelines. Will drop once 19.0 wheel is available.

@pedrobaeza
Copy link
Copy Markdown
Member

/ocabot migration resource_booking

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Oct 19, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 19, 2025
4 tasks
@tishmen
Copy link
Copy Markdown
Author

tishmen commented Oct 19, 2025

Update: temporary dependency now references OCA/web#3335 (v2 PR) instead of #3306. Will remove once 19.0 wheel is published.

@github-actions
Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Feb 22, 2026
@victoralmau
Copy link
Copy Markdown
Member

Please, cherry-pick #210 to commit history before migration commit.

@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 29, 2026
@dnplkndll
Copy link
Copy Markdown
Contributor

@tishmen looks like the deps are merged. code looks good.

dnplkndll added a commit to ledoent/calendar that referenced this pull request May 16, 2026
Forward-port of resource_booking from 18.0 to the 19.0 series.

Includes the following 18.0 fixes already merged upstream:
- [FIX] access error on normal calendar
- [FIX] display all slots in the same time zone correctly

Supersedes OCA#187 (stale; 12 commits behind upstream/19.0 at the time
of this squash; missing the post-merge updates and setup metapackage
bits that have since landed in upstream/19.0). The substantive
migration work in this commit is unchanged from Milan Topuzov's
original PR; this commit re-bases it on current upstream/19.0 and
drops the Weblate-owned i18n/*.po files and auto-generated
requirements.txt that contributors should not include in a PR.

Co-Authored-By: Víctor Martínez <victor.martinez@tecnativa.com>
Co-Authored-By: Carlos Lopez <carlos.lopez@tecnativa.com>
Co-Authored-By: Don Kendall <dkendall@ledoweb.com>
dnplkndll added a commit to ledoent/calendar that referenced this pull request May 16, 2026
Forward-port of resource_booking from 18.0 to the 19.0 series.

Includes the following 18.0 fixes already merged upstream:
- [FIX] access error on normal calendar
- [FIX] display all slots in the same time zone correctly

Supersedes OCA#187 (stale; 12 commits behind upstream/19.0 at the time
of this squash; missing the post-merge updates and setup metapackage
bits that have since landed in upstream/19.0). The substantive
migration work in this commit is unchanged from Milan Topuzov's
original PR; this commit re-bases it on current upstream/19.0 and
drops the Weblate-owned i18n/*.po files and auto-generated
requirements.txt that contributors should not include in a PR.

Co-Authored-By: Víctor Martínez <victor.martinez@tecnativa.com>
Co-Authored-By: Carlos Lopez <carlos.lopez@tecnativa.com>
Co-Authored-By: Don Kendall <dkendall@ledoweb.com>
dnplkndll added a commit to ledoent/calendar that referenced this pull request May 16, 2026
Forward-port of resource_booking from 18.0 to the 19.0 series.

Includes the following 18.0 fixes already merged upstream:
- [FIX] access error on normal calendar
- [FIX] display all slots in the same time zone correctly

Supersedes OCA#187 (stale; 12 commits behind upstream/19.0 at the time
of this squash; missing the post-merge updates and setup metapackage
bits that have since landed in upstream/19.0). The substantive
migration work in this commit is unchanged from Milan Topuzov's
original PR; this commit re-bases it on current upstream/19.0 and
drops the Weblate-owned i18n/*.po files and auto-generated
requirements.txt that contributors should not include in a PR.

Co-Authored-By: Víctor Martínez <victor.martinez@tecnativa.com>
Co-Authored-By: Carlos Lopez <carlos.lopez@tecnativa.com>
Co-Authored-By: Don Kendall <dkendall@ledoweb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants