Daily updates from Odoo
Thursday, June 25, 2026
1 change
Code cleanup and technical improvements
This change removes an old fallback that could silently pick the wrong website when a URL was requested. It helps ensure the correct site is used more reliably and reduces inconsistent behavior in related website features and tests.
Original PR description
Removed the legacy fallback mechanism that used threading to retrieve a URL inside get_current_website. This hidden mechanism masked structural architectural flaws by systematically falling back to the first website record found, even when it didn't match the requested URL. By eliminating this permissive behavior, we expose hidden design issues and resolve long-standing test inconsistencies caused by non-deterministic fallbacks.