fbcc1bf4c05440bcc55d47cd6f2f61326f54aecc
RATIONALE Improve usage of composer in comment or email mode: support batch-posting in comment, support more configuration from templates, improve global model. SPECIFICATIONS Purpose of this task is to correctly support scheduled_date from template on both comment and mass mode in the composer. It is currently mainly supported at template level, when using a template to directly send emails. In this commit we add a field on composer that takes the value from the template, and propagate it to the mail or messages created when validating it. As most template fields it can contain inline template code to be rendered dynamically on target records, hence using a char field. Its rendering is done using template that calls _parse_scheduled_datetime. It allows to have an UTC and timezone agnostic value. SCHEDULED_DATE SUPPORT When posting a comment, scheduled posts uses the 'mail.message.schedule' mechanism that creates the message but send notifications later. When sending a mailing, emails have a scheduled_date set. As the 'send' method does not check for scheduled_date (only the cron queue) we have to filter emails scheduled in the future before calling the 'send' method. Task-2993872 (Mail: Support scheduled date in all composer flows) 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%