Saturday, February 10, 2024
3 changes · master
Enhancements to existing features
This update simplifies how Odoo prepares suggested recipients in chatter by handling the usual single-record case directly. It reduces unnecessary processing across several business apps while keeping the user-facing behavior the same.
Original PR description
*: crm, event, hr_recruitment, project, sale, survey, test_mail, website_event_exhibitor, website_event_track Before this PR: `_message_get_suggested_recipients` method returns suggested recipients for chatter as a dict of thread id (key) and list of recipients (value). In all use cases of this function (load chatter data), there's only one record so the return value is always a dict with length equal one. After this PR: `_message_get_suggested_recipients` method is changed to return a list of suggested recipients for one present thread. It makes the code simpler and avoid extra lines and operations to get the needed data. [Related Enterprise PR](https://github.com/odoo/enterprise/pull/56236)
The web module's expression editor tests were moved to a newer testing framework, improving maintainability and consistency for future development. This is an internal quality improvement with no direct change to day-to-day user workflows.
Original PR description
task-id: 3705027
The way Odoo prepares suggested recipients for chatter messages has been simplified for cases involving a single record. This reduces unnecessary processing and helps keep related Helpdesk and Studio features easier to maintain without changing the visible user experience.
Original PR description
*: helpdesk, web_studio Before this PR: `_message_get_suggested_recipients` method returns suggested recipients for chatter as a dict of thread id (key) and list of recipients (value). In all use cases of this function (load chatter data), there's only one record so the return value is always a dict with length equal one. After this PR: `_message_get_suggested_recipients` method is changed to return a list of suggested recipients for one present thread. It makes the code simpler and avoid extra lines and operations to get the needed data. [Related Odoo PR](https://github.com/odoo/odoo/pull/153402)