Daily updates from Odoo
Friday, June 5, 2026
4 changes
Code cleanup and technical improvements
This update simplifies access to the document portal by using a dedicated URL (/my/documents) instead of an accidental override. This change removes unnecessary complexity and improves the user experience for accessing and managing documents.
Original PR description
Currently, the general webclient route is overriden
to manage custom documents URLs with access_token.
The code needs to work around several things to make it
work:
- manage db and auth explicitely
- override `readonly`
With this commit, we now use a new dedicated route
which is more specific than the normal webclient route.
It doesn't need any of the workarounds and it's generally
easier since it doesn't involve any override.
`/odoo/documents_portal` only resolved by accident: it matched the
`/odoo/<subpath>` route overriden by `documents`, passed the
`subpath.startswith('documents')` check, and the literal string
`documents_portal` was then interpreted as an access token. The
portal user was redirected to `/documents/documents_portal`, where
`documents_portal` was treated as an access token, which is
nonsense.
Expose the portal entry under `/my/documents` URL instead.This update resolves a technical issue related to an outdated React component method (useLayoutEffect) that was causing performance problems and potential instability. Replacing it with the recommended onMounted + onPatched approach ensures the system runs smoothly and aligns with current Odoo standards.
Original PR description
Replaces useLayoutEffect with onMounted + onPatched WHY: UseLayoutEffect is deprecated in OWL3 Community PR: https://github.com/odoo/odoo/pull/267715
This update replaces `useState` with `proxy` across several Odoo addons (Owl3) to enhance stability and performance. This refactoring primarily impacts the web_enterprise, web_gantt, web_grid, and web_studio modules, ensuring a smoother user experience and more reliable operation.
Original PR description
In Owl3, uses of `useState` or replace with `proxy`. This commit changes all those uses for addons in the range [w..]. *: web_enterprise,web_gantt,web_grid,web_map,web_mobile,web_studio,web_studio_ai_fields,website_generator,website_helpdesk_forum,website_knowledge,whatsapp,
This update replaces a reliance on global website settings with a context-based approach, ensuring consistent website behavior across different Odoo environments (like CRON jobs). This change improves the stability and predictability of website-dependent features, resolving a potential issue with inconsistent website identification. The goal is to eliminate fallback mechanisms for a more robust system.