Daily updates from Odoo
Monday, June 29, 2026
1 change
Code cleanup and technical improvements
This change removes an old website selection helper and replaces it with more explicit ways to identify the active website. It reduces ambiguity and lowers the risk of the wrong website being used in requests, tests, and backend flows.
Original PR description
Finalized the deprecation roadmap by completely removing the
`get_current_website()` method. All remaining call sites have been
migrated to use explicit, precise syntax.
Migration strategy applied:
* Standard calls now use `self.env.website`, relying on the safely
injected context.
* Complex locations requiring explicit domain-based routing fallbacks
have been replaced with `self.env.website` or `self.env['website'].browse(self.env.context.get('host_id'))`.
* This brings total clarity to the codebase, ensuring that website
resolution is explicit, predictable, and fully traceable.