Skip to content
Snippets Groups Projects
Unverified Commit be279551 authored by Robot Odoo's avatar Robot Odoo Committed by GitHub
Browse files

[MERGE] mail, various: improve post and notification API and performances


Purpose of this merge is to clean and improve performances of post and
notification mechanism contained in mail application.

In this merge we provide

* centralization of notification code inside mail.thread instead of being
dispatched in mail.thread, mail.message and res.partner;
* simplification of call chain, removal of unnecessary methods;
* better propagation of messages value through the various calls in order
to use given value and avoid browse and cache miss adding queries;
* optimization of attachments management in post;
* cleaning of message_post now limited to records and simplified in its
management of parameter;
* cleaning and simplification of recipients grouping for email notification;
* cleaning of message_notify;
* various code cleaning and tweaking in order to reduce query count;

Performance tests indicate number of queries did fall, especially in
use cases involving management of followers and attachments. See sub
commits for more details. This merge is linked to task ID 1943901.

closes odoo/odoo#32404

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parents 49ac956b de7c119e
No related branches found
No related tags found
No related merge requests found
Showing
with 1080 additions and 965 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment