Wednesday, August 9, 2023
6 changes · master
Enhancements to existing features
Odoo now has a more targeted way to recognize guest users when they access mail, discussion, public page, and live chat features. This helps make guest access more consistent while avoiding unnecessary processing on unrelated requests.
Original PR description
This PR adds the `add_guest_to_context` decorator in order to provide a generic way to extract the guest from a request. It will be used to unified guest extraction from cookie/param based on its provenance (external livechat/public page). This is better than the `pre_dispatch` method since it can be applied to specific routes instead of adding this logic to every request. part of task-3332628
This update reorganizes and strengthens the internal structure behind Odoo's mail services. It helps developers catch integration issues earlier and makes the mail module easier to maintain, with minimal direct impact on day-to-day users.
This update improves internal test support for scenarios where visitors or guests interact with messaging, live chat, calendar, and related website features. It helps Odoo validate future guest-based live chat and messaging behavior more reliably before it reaches users.
Original PR description
*: bus, calendar, im_livechat, web, website_livechat. This PR adds the possibility to set the current user during tests as well as the mail guest. This will be used to test mail guest page and livechat once the visitors will be treated as guests. part of task-3332628 enterprise: https://github.com/odoo/enterprise/pull/45331
When a forum question is deleted, users are now taken back to the forum home page instead of staying on the deleted question page. This avoids a confusing dead-end experience and makes navigation clearer after deletion.
Original PR description
before this commit, on deleting a question from forum is redirecting to the same question page with deleted tag. after this commit, user will be redirected to forum home page after deleting a question --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The forum post form now only shows closing-related fields when a post is actually closed. It also limits answer-specific fields to child posts, making the form clearer and reducing confusion for users managing forum content.
Original PR description
before this commit, in the forum post form view, the closing related fields, is visible even if the post is not closed and question field should not be shown in the parent post. after this commit, closing fields will be shown only once post is closed and parent_id and is_correct field will be shown only in child post(answer) --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Documents app test coverage now includes scenarios for guest and dynamically created users. This helps ensure shared document workflows remain reliable for users who are not standard internal employees.
Original PR description
part of task-3332628 community: https://github.com/odoo/odoo/pull/130811