Skip to content

Conversation

@tishmen
Copy link

@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
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
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
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
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.

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.

4 participants