ae8f0f2e83ee2c8c69006451ff96f56144d78631
When computing recipients based on template we generally create new partners based on emails. This is due to the mail framework managing mainly partners and not low level emails. This code is currently sequential: fetching or creating partners one by one based on found emails, for each record. This is highly inefficient when sending emails on a lot of records based on templates. Purpose of this commit is to improve code and performances by batching. We do queries in batch: one search for all records, create partner in batch. This leads to code being a bit more complicated to correctly remember and dispatch again emails and partners to the correct records. Task-3034875 (Mail: Speedup and batch partners find or create with templates) Part-of: odoo/odoo#99482
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%