Daily updates from Odoo
Monday, April 15, 2024
1 change · 17.0
New functionality added to Odoo
A new feature has been added to allow sales order confirmation emails to be sent asynchronously instead of immediately during order processing. This removes a performance bottleneck that can slow down order confirmation, especially during high-volume sales events like flash sales. When enabled via a system setting, email rendering is handled by a background process, allowing order processing to complete much faster.
Original PR description
This commit adds a new module to allow delaying the sending of sales order confirmation emails, thus removing a performance bottleneck in the order confirmation flow. This is particularly useful for "flash" sales in which a large number of event tickets are sold in a very short time span. When the emails are scheduled to be sent right away, the email rendering that is part of the payment post-processing keeps the worker busy. When the system parameter `sale.async_emails` is set to `True`, the email rendering is delegated to a cron, allowing the payment post-processing to execute much faster. task-3782827