Thibault Delavallée
fbcc1bf4c0
[IMP] mail: support 'scheduled_date' from template on composer
...
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
2023-01-17 20:58:40 +01:00
..
2023-01-17 20:58:39 +01:00
2022-12-04 23:41:52 +01:00
2023-01-11 22:43:27 +01:00
2023-01-16 09:32:51 +01:00
2023-01-13 16:27:00 +01:00
2023-01-11 22:43:22 +01:00
2022-12-13 11:47:49 +01:00
2022-11-23 21:56:09 +01:00
2022-10-25 18:44:57 +02:00
2023-01-17 14:17:06 +01:00
2022-12-26 11:39:44 +01:00
2023-01-17 01:10:09 +01:00
2022-12-02 14:40:25 +01:00
2023-01-16 19:45:57 +01:00
2023-01-03 13:16:02 +01:00
2023-01-03 13:16:02 +01:00
2022-11-24 19:25:14 +01:00
2022-11-09 16:08:07 +01:00
2022-11-25 10:52:12 +01:00
2022-12-16 16:17:41 +01:00
2022-12-23 12:10:55 +01:00
2023-01-16 19:45:52 +01:00
2023-01-13 16:27:38 +01:00
2022-11-21 21:18:53 +01:00
2022-12-20 10:23:54 +01:00
2023-01-17 10:20:51 +01:00
2023-01-12 11:09:23 +01:00
2022-11-29 13:20:31 +01:00
2023-01-17 14:16:56 +01:00
2023-01-17 20:58:39 +01:00
2022-11-07 22:38:56 +01:00
2022-11-24 13:29:05 +01:00
2023-01-17 20:58:39 +01:00
2023-01-17 20:58:34 +01:00
2023-01-17 20:58:34 +01:00
2022-11-06 02:16:48 +01:00
2023-01-09 16:39:15 +01:00
2022-11-14 16:21:55 +01:00
2023-01-17 20:58:35 +01:00
2023-01-11 09:38:49 +01:00
2023-01-17 18:12:48 +01:00
2023-01-17 20:58:39 +01:00
2023-01-17 20:58:34 +01:00
2022-12-14 22:03:58 +01:00
2023-01-17 20:58:34 +01:00
2023-01-05 15:37:04 +01:00
2022-12-05 10:07:39 +01:00
2022-12-16 16:17:41 +01:00
2023-01-17 20:58:30 +01:00
2022-10-25 16:11:59 +02:00
2023-01-11 22:43:14 +01:00
2023-01-17 16:47:14 +01:00
2023-01-12 11:09:40 +01:00
2023-01-17 11:33:50 +01:00
2023-01-17 20:58:34 +01:00
2022-12-12 18:16:17 +01:00
2022-12-06 10:52:26 +01:00
2023-01-17 20:58:35 +01:00
2022-12-19 13:38:09 +01:00
2022-10-21 11:09:14 +02:00
2023-01-04 17:50:45 +01:00
2023-01-17 20:58:39 +01:00
2023-01-17 20:58:35 +01:00
2022-12-16 16:17:41 +01:00
2022-12-09 10:44:59 +01:00
2022-12-09 10:45:02 +01:00
2022-12-09 10:45:02 +01:00
2022-12-09 10:45:02 +01:00
2023-01-16 11:36:49 +01:00
2022-11-30 20:03:11 +01:00
2023-01-05 15:37:04 +01:00
2023-01-11 14:30:46 +01:00
2023-01-17 20:58:34 +01:00
2023-01-16 19:45:57 +01:00
2022-12-27 11:17:41 +01:00
2023-01-17 18:12:48 +01:00
2022-12-02 14:40:25 +01:00
2022-12-14 14:19:58 +01:00
2023-01-17 18:12:48 +01:00
2022-12-15 13:40:43 +01:00
2023-01-17 19:55:50 +01:00
2022-11-02 11:38:38 +01:00
2023-01-02 20:39:53 +01:00
2022-11-11 17:54:39 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2022-12-09 11:48:42 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-06 14:31:49 +01:00
2023-01-10 14:40:55 +01:00
2022-12-14 11:41:52 +01:00
2023-01-17 19:55:50 +01:00
2023-01-05 15:36:56 +01:00
2023-01-05 11:35:46 +01:00
2022-12-16 16:17:41 +01:00
2022-12-08 11:29:24 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-03 13:16:05 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-13 12:57:44 +01:00
2022-12-09 13:03:38 +01:00
2022-12-02 14:40:25 +01:00
2023-01-17 19:55:50 +01:00
2022-12-06 20:06:53 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-09 14:24:26 +01:00
2023-01-05 14:32:48 +01:00
2023-01-10 15:43:16 +01:00
2022-11-29 13:20:31 +01:00
2022-12-16 16:17:41 +01:00
2022-10-21 11:09:14 +02:00
2023-01-17 19:55:50 +01:00
2022-12-16 16:17:41 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-09 12:22:49 +01:00
2023-01-17 19:55:50 +01:00
2023-01-16 10:32:17 +01:00
2023-01-17 12:59:05 +01:00
2023-01-17 12:59:05 +01:00
2022-12-14 11:41:52 +01:00
2023-01-02 09:53:57 +01:00
2023-01-02 09:53:57 +01:00
2023-01-02 09:53:57 +01:00
2023-01-02 09:53:57 +01:00
2023-01-12 11:09:19 +01:00
2023-01-16 10:32:18 +01:00
2023-01-17 19:55:50 +01:00
2023-01-13 14:00:01 +01:00
2022-12-19 10:30:57 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-13 16:28:03 +01:00
2023-01-17 19:55:50 +01:00
2022-11-23 16:14:45 +01:00
2022-12-19 11:33:47 +01:00
2022-12-16 16:17:41 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2022-12-09 19:45:52 +01:00
2023-01-05 15:37:18 +01:00
2022-11-29 13:20:31 +01:00
2022-11-04 09:52:54 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2022-12-07 18:29:39 +01:00
2022-12-16 12:45:40 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2022-12-16 16:17:41 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-09 15:28:53 +01:00
2023-01-03 20:14:46 +01:00
2023-01-17 19:55:50 +01:00
2023-01-02 20:39:27 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-11 07:27:14 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-03 13:16:02 +01:00
2023-01-17 20:58:39 +01:00
2023-01-17 20:58:35 +01:00
2023-01-17 20:58:40 +01:00
2022-10-31 18:52:59 +01:00
2022-11-11 17:54:39 +01:00
2023-01-17 20:58:34 +01:00
2023-01-17 20:58:34 +01:00
2023-01-05 15:37:04 +01:00
2023-01-17 20:58:40 +01:00
2022-12-14 07:49:03 +01:00
2022-12-14 07:49:03 +01:00
2022-12-22 15:55:07 +01:00
2023-01-03 13:16:02 +01:00
2022-12-01 16:27:52 +01:00
2023-01-11 22:43:14 +01:00
2023-01-09 22:31:51 +01:00
2023-01-17 20:58:34 +01:00
2023-01-11 13:20:48 +01:00
2023-01-11 13:20:48 +01:00
2022-12-16 19:37:49 +01:00
2022-11-14 13:01:57 +01:00
2022-11-16 13:23:41 +01:00
2022-12-01 17:32:22 +01:00
2023-01-10 18:54:47 +01:00
2023-01-06 08:09:07 +01:00
2023-01-17 20:58:34 +01:00
2023-01-17 14:16:36 +01:00
2023-01-10 13:40:01 +01:00
2023-01-05 16:51:56 +01:00
2022-11-29 13:20:31 +01:00
2023-01-05 16:51:56 +01:00
2023-01-05 16:51:56 +01:00
2023-01-05 16:51:56 +01:00
2022-12-21 13:33:55 +01:00
2022-11-29 17:22:54 +01:00
2023-01-05 16:51:56 +01:00
2023-01-05 16:51:56 +01:00
2023-01-05 16:51:56 +01:00
2022-11-29 13:20:31 +01:00
2023-01-05 16:51:56 +01:00
2023-01-05 16:51:56 +01:00
2023-01-10 14:41:05 +01:00
2023-01-05 16:51:56 +01:00
2023-01-05 16:51:56 +01:00
2023-01-13 17:33:14 +01:00
2023-01-17 20:58:33 +01:00
2023-01-17 20:58:31 +01:00
2023-01-17 20:58:34 +01:00
2022-12-14 11:41:52 +01:00
2022-12-14 11:41:52 +01:00
2022-12-14 11:41:52 +01:00
2022-12-14 11:41:52 +01:00
2023-01-05 14:32:47 +01:00
2023-01-09 16:39:18 +01:00
2022-12-21 17:41:44 +01:00
2022-12-14 11:41:52 +01:00
2023-01-09 16:39:18 +01:00
2022-12-14 11:41:52 +01:00
2022-12-14 11:41:52 +01:00
2023-01-12 19:08:40 +01:00
2022-12-14 11:41:52 +01:00
2022-11-11 17:54:39 +01:00
2023-01-05 14:32:48 +01:00
2023-01-05 14:32:47 +01:00
2022-12-30 17:24:49 +01:00
2022-12-01 16:27:58 +01:00
2023-01-17 10:21:05 +01:00
2023-01-17 20:58:34 +01:00
2023-01-06 18:41:46 +01:00
2023-01-04 11:35:49 +01:00
2022-12-15 12:37:01 +01:00
2023-01-17 20:58:39 +01:00
2022-11-09 21:17:46 +01:00
2022-12-19 11:33:49 +01:00
2023-01-17 12:58:48 +01:00
2023-01-17 20:58:39 +01:00
2023-01-13 16:27:26 +01:00
2023-01-13 17:32:51 +01:00
2022-12-15 12:37:01 +01:00
2023-01-17 20:58:34 +01:00
2023-01-13 16:27:26 +01:00
2023-01-13 16:27:26 +01:00
2023-01-17 20:58:34 +01:00
2023-01-17 20:58:34 +01:00
2023-01-17 20:58:39 +01:00
2023-01-16 15:43:01 +01:00
2023-01-17 20:58:39 +01:00
2022-11-10 13:15:39 +01:00
2022-11-29 09:32:45 +01:00
2023-01-17 08:17:52 +01:00
2022-11-09 23:33:27 +01:00
2022-12-27 11:17:46 +01:00
2022-12-14 17:17:52 +01:00
2022-11-24 10:02:53 +01:00
2022-11-09 16:08:19 +01:00
2023-01-13 17:32:57 +01:00
2022-11-25 17:55:59 +01:00
2023-01-17 11:34:12 +01:00
2022-11-07 14:52:51 +01:00
2023-01-13 16:27:26 +01:00
2022-12-19 11:33:47 +01:00
2023-01-16 15:43:00 +01:00
2023-01-17 20:58:34 +01:00
2023-01-17 20:58:34 +01:00
2023-01-16 19:45:57 +01:00
2023-01-10 18:54:47 +01:00
2023-01-17 20:58:34 +01:00
2023-01-02 10:53:54 +01:00
2022-12-02 14:40:25 +01:00
2023-01-17 14:16:34 +01:00
2023-01-10 13:39:56 +01:00
2023-01-11 17:58:39 +01:00
2022-12-12 13:18:59 +01:00
2023-01-02 12:56:33 +01:00
2023-01-04 18:49:46 +01:00
2023-01-13 16:27:17 +01:00
2022-12-09 16:41:01 +01:00
2023-01-12 19:08:55 +01:00
2023-01-03 13:16:23 +01:00
2023-01-03 13:16:23 +01:00
2023-01-03 13:16:23 +01:00
2022-11-29 13:20:31 +01:00
2022-12-09 16:41:01 +01:00
2022-12-09 16:41:01 +01:00
2023-01-17 20:58:39 +01:00
2023-01-17 11:34:00 +01:00
2023-01-03 14:32:52 +01:00
2022-12-23 12:10:58 +01:00
2022-12-01 08:13:38 +01:00
2022-12-02 14:40:25 +01:00
2023-01-17 20:58:39 +01:00
2023-01-13 16:27:38 +01:00
2022-11-21 22:20:27 +01:00
2022-11-21 22:20:27 +01:00
2023-01-11 09:38:45 +01:00
2023-01-17 20:58:40 +01:00
2023-01-17 20:58:39 +01:00
2022-10-26 00:55:05 +02:00
2023-01-17 20:58:30 +01:00
2022-12-09 16:40:58 +01:00
2022-12-15 12:37:01 +01:00
2023-01-02 09:54:12 +01:00
2023-01-05 15:37:04 +01:00
2023-01-17 16:47:24 +01:00
2023-01-17 18:12:48 +01:00
2022-10-27 14:41:17 +02:00
2022-12-15 15:45:07 +01:00
2022-12-07 18:29:13 +01:00
2023-01-17 20:58:39 +01:00
2023-01-17 20:58:34 +01:00
2023-01-03 13:16:02 +01:00
2023-01-17 20:58:34 +01:00
2023-01-16 19:45:57 +01:00
2023-01-11 09:38:46 +01:00
2022-12-14 22:03:59 +01:00
2022-11-09 16:08:07 +01:00
2022-12-02 14:40:25 +01:00
2023-01-16 19:45:57 +01:00
2023-01-16 19:45:57 +01:00
2023-01-02 12:56:21 +01:00
2023-01-11 09:38:46 +01:00
2023-01-17 20:58:34 +01:00
2023-01-16 19:45:57 +01:00
2023-01-17 20:58:34 +01:00
2022-12-06 10:52:50 +01:00
2023-01-03 13:16:02 +01:00
2023-01-16 19:45:57 +01:00
2022-11-24 19:25:14 +01:00
2022-11-24 19:25:14 +01:00
2023-01-05 11:35:58 +01:00
2022-12-01 16:27:52 +01:00
2023-01-13 09:18:48 +01:00
2022-12-02 14:40:25 +01:00
2022-12-02 14:40:25 +01:00
2023-01-17 20:58:39 +01:00
2022-12-02 14:40:25 +01:00
2023-01-02 11:53:08 +01:00
2022-12-02 14:40:25 +01:00
2022-12-02 14:40:25 +01:00
2023-01-16 19:45:57 +01:00
2023-01-16 19:45:57 +01:00
2022-12-02 14:40:25 +01:00
2022-12-12 13:18:35 +01:00
2022-11-04 16:59:54 +01:00
2022-12-22 13:47:58 +01:00
2022-10-24 14:12:34 +02:00
2022-12-16 16:17:41 +01:00
2023-01-17 20:58:39 +01:00
2023-01-17 18:12:48 +01:00
2023-01-16 19:45:57 +01:00
2022-12-02 14:40:25 +01:00