517df2661399caed15d8fdc30a7ee22988c610c7
PURPOSE Purpose of this commit is to clean notification email values generation while keeping possibility to override and tweak values. It now has clean hooks on base mail value and final mail values. SPECIFICATIONS Base mail value are values independent from recipients. It allows notably to tweak values depending on current record without having to browse and access record for every recipient, saving unnecessary computation. Final mail values are recipients-dependent and are the values that will be use to create the final ``mail.mail``. With a mechanism of optional additional values + hooks for base and final values it should be possible to keep any custom behavior already implemented with a cleaner interface and code flow. See notably odoo/odoo@b1a5bf95f8 for example of why some code exist just for hook purpose. As a side note, light variable renaming is performed (email -> new_email) to avoid shadowing email. Task-2710804 (Mail: Clean Mail.Thread API) Part-of: odoo/odoo#82167
…
…
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%