Thursday, June 18, 2026
3 changes · 19.0
Code cleanup and technical improvements
This update moves and cleans up shared redirect handling used during OAuth sign-in so it can be reused outside the OAuth area. It also adds documentation and tests to make the behavior clearer and safer, with no expected disruption for users.
Original PR description
## [MOV] odoo,auth_oauth: fragment_to_query_string The aim of this commit is to allow module unrelated to auth_oauth to import fragment_to_query_string. task-id: 6071808 ## [REF] odoo: JUC compliant fragment_to_query_string The aim of this commit is to make `fragment_to_query_string` JUC compliant by: - documenting the behavior - clarifying the code - reducing possible side effect - testing the behavior - add a route to be able to test it manually task-id: 6071808
This update reorganizes and documents shared redirect handling so it can be reused beyond OAuth sign-in. It reduces the risk of unintended side effects and adds tests to confirm the behavior remains reliable.
Original PR description
## [MOV] odoo,auth_oauth: fragment_to_query_string The aim of this commit is to allow module unrelated to auth_oauth to import fragment_to_query_string. task-id: 6071808 ## [REF] odoo: JUC compliant fragment_to_query_string The aim of this commit is to make the fragment_to_query_string function JUC compliant by: - documenting the behavior - clarifying the code - reducing possible side effect - testing the behavior of that hacky function. task-id: 6071808
This update ensures that references to a key function, `fragment_to_query_string`, are correctly managed as it's integrated into the core HTTP handling within Odoo. This refactoring improves the stability and maintainability of the social media controllers, ensuring consistent behavior across the platform.
Original PR description
The aim of this commit is to keep referencing fragment_to_query_string correctly as it is moved into `http.py`. task-id: 6071808