Soukéina Bojabza
1a5a14268d
[FIX] web_editor: make image options start more robust
...
This commit makes the image options initialization more robust, by
- checking at the beginning if the specified `src` and `data-original-
src` attributes match with existing files.
- checking if there is a `data-original-src` attribute before applying
the ImageTools options (shape, filter,...).
This is needed because in the case of wrongly hardcoded templates (e.g.
in customizations), it is sometimes not possible to drop any snippet
after dropping an incorrect one. This happens because the image
`SnippetEditor` is not correctly created. Indeed, the start of the image
options is never completed because the promise rejections when a file
does not exist are not properly caught, interrupting the initialization.
Therefore, ensuring that the files exist beforehand prevents these
issues from happening.
opw-3137732
closes odoo/odoo#118546
X-original-commit: 93ddaac87a76d6d1775e0b3e30bb66ca85147503
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com >
2023-04-14 11:49:20 +02:00
..
2023-04-13 16:40:19 +02:00
2023-04-06 18:18:06 +02:00
2023-04-13 16:39:48 +02:00
2023-04-03 20:48:02 +02:00
2023-03-18 03:32:40 +01:00
2023-04-13 16:39:48 +02:00
2023-04-13 16:39:48 +02:00
2023-04-13 16:39:48 +02:00
2023-03-31 11:58:47 +02:00
2023-03-20 16:51:30 +01:00
2023-03-24 12:50:13 +01:00
2023-04-05 20:03:09 +02:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-08 11:37:07 +01:00
2023-04-13 16:40:11 +02:00
2023-04-03 17:07:24 +02:00
2023-04-04 13:35:18 +02:00
2023-04-03 17:07:24 +02:00
2023-03-07 11:11:51 +01:00
2023-04-03 17:07:24 +02:00
2023-04-09 08:03:45 +02:00
2023-04-03 17:07:24 +02:00
2023-03-20 16:51:30 +01:00
2023-03-30 16:22:51 +02:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-04-13 04:08:50 +02:00
2023-03-20 16:51:30 +01:00
2023-03-14 15:52:10 +01:00
2023-04-13 12:29:51 +02:00
2023-03-20 16:51:30 +01:00
2023-03-28 18:45:47 +02:00
2023-04-13 17:57:13 +02:00
2023-04-07 21:48:48 +02:00
2023-04-13 17:57:29 +02:00
2023-03-20 16:51:30 +01:00
2023-04-03 17:07:24 +02:00
2023-04-13 16:39:48 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 16:39:48 +02:00
2023-03-16 14:12:37 +01:00
2023-03-20 16:51:28 +01:00
2023-04-13 05:07:36 +02:00
2023-03-23 09:06:52 +01:00
2023-03-14 12:23:45 +01:00
2023-04-05 15:11:06 +02:00
2023-04-13 12:29:51 +02:00
2023-04-13 16:39:48 +02:00
2023-03-24 12:50:13 +01:00
2023-04-03 17:07:24 +02:00
2023-03-24 07:45:15 +01:00
2023-04-13 15:25:46 +02:00
2023-04-13 16:39:48 +02:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-04-13 16:39:48 +02:00
2023-03-01 23:28:07 +01:00
2023-04-03 17:07:24 +02:00
2023-04-13 16:39:48 +02:00
2023-04-13 17:57:58 +02:00
2023-04-13 15:26:20 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 15:25:46 +02:00
2023-03-20 16:51:30 +01:00
2023-04-13 17:57:47 +02:00
2023-03-22 00:53:57 +01:00
2023-03-20 16:51:30 +01:00
2023-04-13 16:40:19 +02:00
2023-04-13 15:25:46 +02:00
2023-04-13 16:39:48 +02:00
2023-04-14 09:39:50 +02:00
2023-04-13 16:39:48 +02:00
2023-04-14 08:33:49 +02:00
2023-04-03 17:07:07 +02:00
2023-04-14 11:49:15 +02:00
2023-04-13 15:25:46 +02:00
2023-03-31 08:50:55 +02:00
2023-04-14 10:45:09 +02:00
2023-03-20 16:51:30 +01:00
2023-03-27 12:47:20 +02:00
2023-04-13 16:40:38 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 16:39:48 +02:00
2023-04-11 19:48:40 +02:00
2023-04-12 16:33:11 +02:00
2023-04-13 16:40:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-03-10 11:23:51 +01:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-06 10:40:49 +02:00
2023-04-06 10:40:49 +02:00
2023-03-30 15:09:36 +02:00
2023-03-17 23:24:11 +01:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 22:47:49 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-03-14 13:30:05 +01:00
2023-04-12 16:33:11 +02:00
2023-03-07 10:06:13 +01:00
2023-04-12 16:33:11 +02:00
2023-03-30 16:23:10 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 09:31:31 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-03-07 10:06:13 +01:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-11 18:49:32 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-13 16:39:48 +02:00
2023-04-13 16:39:48 +02:00
2023-04-12 16:33:11 +02:00
2023-04-13 16:39:48 +02:00
2023-03-15 16:08:08 +01:00
2023-03-25 02:47:01 +01:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-03-28 16:44:20 +02:00
2023-04-12 16:33:11 +02:00
2023-03-24 12:50:13 +01:00
2023-04-12 08:05:44 +02:00
2023-03-31 15:52:18 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-03-07 10:06:13 +01:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-04-12 16:33:11 +02:00
2023-03-20 16:51:30 +01:00
2023-03-27 19:13:50 +02:00
2023-03-27 20:06:54 +02:00
2023-04-13 15:25:46 +02:00
2023-04-13 17:57:56 +02:00
2023-04-13 16:39:48 +02:00
2023-04-04 20:08:36 +02:00
2023-03-20 07:58:46 +01:00
2023-04-13 16:39:48 +02:00
2023-04-13 16:40:11 +02:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 15:52:10 +01:00
2023-04-13 16:39:48 +02:00
2023-03-24 12:50:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 15:52:10 +01:00
2023-03-14 15:52:10 +01:00
2023-04-13 17:57:42 +02:00
2023-04-05 09:42:37 +02:00
2023-03-14 15:52:10 +01:00
2023-03-01 17:01:17 +01:00
2023-04-11 11:33:40 +02:00
2023-03-03 17:05:07 +01:00
2023-03-09 10:51:43 +01:00
2023-03-09 10:51:43 +01:00
2023-03-20 16:51:30 +01:00
2023-04-05 19:02:42 +02:00
2023-04-11 18:49:27 +02:00
2023-04-13 16:39:48 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-03-20 16:51:30 +01:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-03-16 20:37:59 +01:00
2023-03-20 16:51:30 +01:00
2023-03-07 16:56:40 +01:00
2023-03-20 16:51:30 +01:00
2023-03-09 10:51:29 +01:00
2023-03-29 09:33:55 +02:00
2023-03-05 15:12:54 +01:00
2023-04-13 16:40:11 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 16:40:11 +02:00
2023-04-12 15:42:27 +02:00
2023-04-13 16:40:11 +02:00
2023-04-06 16:12:24 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 16:40:11 +02:00
2023-04-04 13:35:06 +02:00
2023-04-13 04:08:08 +02:00
2023-04-12 15:42:27 +02:00
2023-04-13 16:40:11 +02:00
2023-03-14 15:52:10 +01:00
2023-04-04 11:01:59 +02:00
2023-03-20 16:51:30 +01:00
2023-04-14 10:44:53 +02:00
2023-03-20 16:51:30 +01:00
2023-04-13 16:40:00 +02:00
2023-04-11 09:21:00 +02:00
2023-04-06 17:20:44 +02:00
2023-03-16 14:12:37 +01:00
2023-04-06 17:20:44 +02:00
2023-04-06 17:20:44 +02:00
2023-03-05 15:12:54 +01:00
2023-04-13 05:07:55 +02:00
2023-04-12 22:47:57 +02:00
2023-04-13 16:39:48 +02:00
2023-04-13 15:26:41 +02:00
2023-04-03 17:07:24 +02:00
2023-04-05 17:31:55 +02:00
2023-04-13 19:27:49 +02:00
2023-04-11 09:20:55 +02:00
2023-03-24 12:50:13 +01:00
2023-04-13 15:26:21 +02:00
2023-04-13 16:40:11 +02:00
2023-03-30 10:53:48 +02:00
2023-03-17 15:02:46 +01:00
2023-03-30 18:59:11 +02:00
2023-04-05 15:11:06 +02:00
2023-03-29 23:37:03 +02:00
2023-03-20 16:51:30 +01:00
2023-04-05 12:50:43 +02:00
2023-04-03 17:07:24 +02:00
2023-04-13 16:40:00 +02:00
2023-04-13 16:40:19 +02:00
2023-04-13 16:39:59 +02:00
2023-03-20 16:51:30 +01:00
2023-03-24 01:24:48 +01:00
2023-04-13 16:40:19 +02:00
2023-03-30 07:54:04 +02:00
2023-04-13 16:40:30 +02:00
2023-04-01 18:01:49 +02:00
2023-03-30 17:57:44 +02:00
2023-04-07 17:46:42 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-04-14 10:44:53 +02:00
2023-03-31 22:13:48 +02:00
2023-04-13 16:39:48 +02:00
2023-03-08 17:33:37 +01:00
2023-03-30 17:57:58 +02:00
2023-04-13 16:39:48 +02:00
2023-04-14 10:44:58 +02:00
2023-03-24 12:50:13 +01:00
2023-04-13 04:08:11 +02:00
2023-04-03 17:07:24 +02:00
2023-04-13 17:57:56 +02:00
2023-04-13 16:39:48 +02:00
2023-04-04 20:08:37 +02:00
2023-04-13 17:57:56 +02:00
2023-04-11 15:17:20 +02:00
2023-04-04 16:02:12 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-02-24 11:11:40 +01:00
2023-03-08 17:33:37 +01:00
2023-03-29 09:33:35 +02:00
2023-04-14 10:45:01 +02:00
2023-04-14 11:49:20 +02:00
2023-04-12 18:58:29 +02:00
2023-04-13 16:40:11 +02:00
2023-04-13 16:40:24 +02:00
2023-04-13 16:40:11 +02:00
2023-04-03 17:07:24 +02:00
2023-04-13 16:40:11 +02:00
2023-03-20 16:51:30 +01:00
2023-04-11 15:17:20 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-05 12:50:43 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-13 16:40:11 +02:00
2023-04-05 12:50:43 +02:00
2023-04-05 12:50:43 +02:00
2023-04-05 12:50:43 +02:00
2023-04-06 17:20:44 +02:00
2023-04-13 16:40:11 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-13 16:40:11 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-03 17:07:24 +02:00
2023-04-06 08:38:51 +02:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-04-13 16:40:11 +02:00
2023-02-24 18:16:11 +01:00
2023-04-12 14:02:35 +02:00
2023-04-12 14:02:32 +02:00
2023-03-15 13:19:45 +01:00
2023-04-03 17:07:24 +02:00
2023-04-05 12:50:43 +02:00
2023-03-24 19:21:32 +01:00
2023-03-24 11:08:32 +01:00
2023-04-05 12:50:43 +02:00
2023-03-27 20:06:54 +02:00
2023-04-13 16:40:11 +02:00
2023-04-05 12:50:43 +02:00
2023-04-04 13:35:12 +02:00
2023-04-03 17:07:24 +02:00
2023-04-13 16:40:11 +02:00
2023-03-22 17:03:28 +01:00
2023-04-13 04:08:35 +02:00
2023-04-03 17:07:24 +02:00