Thibault Delavallée
37db926fe8
[REF] various: remove usage and dependency on html2text library
...
We have our own html2plaintext, already used in lot of use cases instead of
just a few for the html2txt library.
Notably for emails: most emails going through Odoo stack use our simple
html2plaintext to format the body alternative. When no body alternative
is given to ``build_email`` an alternative is built using the library to
remove. Using our own parser allows to have the same results compared to
using ``MailMail.send()``. Difference lies in spaces and new lines as well
as markdown. Our html2plaintext is a bit simple and does not try to generate
Markdown but generates a simple plaintext version.
This also helps solving some issues with depending on that library.
Task-2702034
closes odoo/odoo#82486
X-original-commit: b3b9627b655cd7cb928925affed6cc8d92661e8d
Related: odoo/enterprise#23364
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com >
2022-01-12 16:43:16 +00:00
..
2022-01-12 16:43:16 +00:00
2021-12-14 19:13:18 +00:00
2022-01-05 11:36:06 +00:00
2021-12-24 13:11:50 +00:00
2022-01-10 19:28:36 +00:00
2021-12-08 16:28:53 +00:00
2021-12-02 13:43:19 +00:00
2021-12-24 17:10:42 +00:00
2021-12-08 11:17:22 +00:00
2021-12-08 11:17:22 +00:00
2021-12-14 19:13:18 +00:00
2022-01-12 13:10:57 +00:00
2021-12-07 13:48:53 +00:00
2021-12-14 12:39:54 +00:00
2021-12-07 13:48:53 +00:00
2021-12-13 12:24:50 +00:00
2022-01-04 10:26:10 +00:00
2022-01-11 08:36:45 +00:00
2021-12-16 09:00:19 +00:00
2021-12-14 19:13:18 +00:00
2021-12-24 14:57:03 +00:00
2021-12-07 13:48:53 +00:00
2021-12-15 00:10:51 +00:00
2021-12-14 12:39:54 +00:00
2022-01-07 19:54:40 +00:00
2021-12-02 12:12:01 +01:00
2021-12-08 09:35:03 +00:00
2021-12-17 11:04:53 +00:00
2021-12-16 17:33:47 +00:00
2021-12-23 15:30:23 +01:00
2021-12-24 14:57:02 +00:00
2021-12-23 15:30:23 +01:00
2021-12-16 17:33:47 +00:00
2022-01-12 07:44:06 +00:00
2022-01-03 12:33:54 +00:00
2021-12-07 13:48:53 +00:00
2021-12-17 10:10:49 +00:00
2022-01-12 08:33:00 +00:00
2022-01-07 07:26:53 +00:00
2021-12-21 07:17:57 +00:00
2022-01-03 18:11:18 +00:00
2022-01-11 16:18:49 +00:00
2021-12-14 19:13:18 +00:00
2022-01-12 15:49:12 +00:00
2021-12-07 13:48:53 +00:00
2021-12-14 19:13:18 +00:00
2021-12-09 16:14:43 +00:00
2021-12-07 13:48:53 +00:00
2022-01-12 16:43:08 +00:00
2021-12-25 02:26:44 +00:00
2021-12-20 07:55:41 +00:00
2021-12-15 12:07:26 +00:00
2022-01-11 09:29:48 +00:00
2022-01-03 18:11:19 +00:00
2021-12-07 13:48:53 +00:00
2022-01-12 15:49:12 +00:00
2022-01-04 10:26:16 +00:00
2021-12-14 12:39:54 +00:00
2022-01-05 12:50:16 +00:00
2021-12-08 11:17:22 +00:00
2021-12-07 09:14:09 +00:00
2021-12-15 22:31:20 +00:00
2021-12-14 19:13:18 +00:00
2021-12-14 19:13:18 +00:00
2021-12-15 22:31:20 +00:00
2021-12-18 21:00:49 +00:00
2021-12-28 09:47:33 +00:00
2021-12-03 08:11:50 +00:00
2022-01-11 08:36:38 +00:00
2021-12-13 11:32:57 +00:00
2021-12-17 21:59:10 +00:00
2022-01-11 13:34:56 +00:00
2021-12-08 12:52:18 +00:00
2021-12-14 14:47:25 +00:00
2022-01-07 19:54:44 +00:00
2022-01-06 19:31:05 +00:00
2022-01-11 07:46:23 +00:00
2021-12-14 19:13:18 +00:00
2022-01-12 10:17:47 +00:00
2021-12-28 09:47:39 +00:00
2021-12-14 10:00:41 +00:00
2021-12-06 11:21:47 +00:00
2021-12-22 00:12:52 +00:00
2021-12-15 22:31:20 +00:00
2022-01-05 23:05:43 +00:00
2021-12-20 10:49:49 +00:00
2021-12-15 22:31:20 +00:00
2021-12-14 09:11:15 +00:00
2022-01-11 16:18:54 +00:00
2022-01-12 11:19:00 +00:00
2021-12-15 00:10:51 +00:00
2021-12-21 09:49:38 +00:00
2021-12-24 09:52:42 +00:00
2021-12-14 19:13:18 +00:00
2022-01-12 15:49:39 +00:00
2022-01-10 10:22:22 +00:00
2021-12-07 13:48:53 +00:00
2022-01-06 11:45:23 +00:00
2021-12-14 19:13:18 +00:00
2022-01-11 15:24:11 +00:00
2021-12-07 16:20:05 +00:00
2022-01-11 15:24:11 +00:00
2021-12-22 17:55:49 +00:00
2021-12-07 16:20:05 +00:00
2021-12-07 16:20:06 +00:00
2021-12-07 16:20:06 +00:00
2022-01-10 08:46:27 +00:00
2022-01-06 08:35:07 +00:00
2022-01-10 13:52:57 +00:00
2021-12-23 09:37:12 +00:00
2021-12-02 12:55:38 +00:00
2022-01-12 16:43:16 +00:00
2021-12-24 14:56:56 +00:00
2021-12-03 14:19:06 +00:00
2022-01-11 11:21:04 +00:00
2021-12-07 19:27:40 +00:00
2021-12-21 08:55:44 +00:00
2022-01-08 01:11:39 +00:00
2021-12-08 11:17:22 +00:00
2021-12-17 11:58:44 +00:00
2022-01-11 11:20:59 +00:00
2021-12-07 16:20:05 +00:00
2022-01-12 15:49:31 +00:00
2022-01-04 17:03:10 +00:00
2021-12-14 12:39:54 +00:00
2022-01-04 17:03:10 +00:00
2022-01-04 17:03:10 +00:00
2021-12-14 19:13:18 +00:00
2022-01-06 19:30:49 +00:00
2022-01-10 14:49:52 +00:00
2021-12-14 19:13:18 +00:00
2022-01-10 14:49:52 +00:00
2022-01-05 13:58:01 +01:00
2022-01-11 15:24:11 +00:00
2021-12-23 13:14:22 +00:00
2022-01-12 10:17:43 +00:00
2021-12-23 15:30:23 +01:00
2021-12-14 14:47:25 +00:00
2021-12-02 12:12:01 +01:00
2021-12-02 12:12:03 +01:00
2022-01-11 15:26:55 +01:00
2021-12-02 12:12:03 +01:00
2021-12-30 09:27:29 +00:00
2021-12-23 15:30:23 +01:00
2021-12-02 12:12:03 +01:00
2022-01-11 15:26:55 +01:00
2021-12-23 15:30:24 +01:00
2021-12-23 15:30:23 +01:00
2022-01-12 14:55:11 +00:00
2022-01-12 13:11:00 +00:00
2021-12-21 20:20:50 +00:00
2022-01-05 12:50:16 +00:00
2022-01-05 12:50:16 +00:00
2022-01-12 15:49:20 +00:00
2022-01-11 17:08:54 +00:00
2021-12-07 16:20:06 +00:00
2021-12-14 19:13:18 +00:00
2021-12-14 19:13:18 +00:00
2022-01-04 12:06:49 +00:00
2021-12-24 14:57:02 +00:00
2021-12-29 16:55:47 +00:00
2021-12-21 20:20:50 +00:00
2022-01-06 19:30:53 +00:00
2021-12-22 15:45:53 +00:00
2022-01-12 11:19:04 +00:00
2021-12-07 13:48:53 +00:00
2021-12-07 13:48:53 +00:00
2022-01-12 14:03:37 +00:00
2022-01-11 14:27:00 +00:00
2022-01-12 14:55:03 +00:00
2022-01-12 14:55:03 +00:00
2021-12-07 13:48:53 +00:00
2021-12-24 14:57:03 +00:00
2022-01-12 14:55:03 +00:00
2021-12-07 13:48:53 +00:00
2021-12-07 13:48:53 +00:00
2022-01-10 13:52:27 +00:00
2022-01-10 13:52:27 +00:00
2021-12-16 17:33:48 +00:00
2022-01-04 08:47:00 +00:00
2022-01-10 13:52:27 +00:00
2021-12-07 13:48:53 +00:00
2022-01-12 14:55:03 +00:00
2021-12-29 16:55:47 +00:00
2021-12-20 19:16:55 +00:00
2021-12-17 12:51:49 +00:00
2021-12-20 11:39:03 +01:00
2022-01-12 14:55:03 +00:00
2021-12-07 13:48:53 +00:00
2021-12-17 12:51:49 +00:00
2021-12-02 12:12:01 +01:00
2021-12-07 13:48:53 +00:00
2021-12-23 15:30:23 +01:00
2021-12-23 15:30:23 +01:00
2021-12-07 13:48:53 +00:00
2022-01-12 14:55:03 +00:00
2021-12-07 13:48:53 +00:00
2021-12-14 19:13:18 +00:00
2021-12-14 19:13:18 +00:00