6a78ed2caddb6473492a41ea220872db56a004d2
RATIONALE Remove _onchange_template_id / defaults usage for composer fields. It lacks control and make value computation hard to understand and predict. PURPOSE Split _onchange_template_id + default_get + get_record_data usage into editable computed stored fields. Each field should have its own method with its triggers (template, composition mode, ...). SPECIFICATIONS Improve composer to correctly compute fields ``partner_ids`` in compute method. Computation is coming either from template, either from context. When having a template it uses its 3 fields 'email_cc', 'email_to' and 'partner_to' in monorecord comment mode. Emails are converted into partners, creating new ones when the email does not match any existing partner. Composer does not deal with emails but only with partners. When having a template in other modes, no recipients are computed as it is done at sending time. When removing the template, reset it. When not having a template, recipients may come from the parent in comment mode, to be sure to notify the same people. Task-2088884 (Mail: Use editable computed stored fields in composer) Part-of: odoo/odoo#107356
…
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%