qsm-odoo
8aac90bcbb
[FIX] website, *: allow to re-edit company team snippet images
...
*: website_sale
Since [1], it was not possible to edit a company team snippet image
anymore as soon as the page was saved once. Indeed that commit added
o_not_editable/contenteditable="false" on the parent column to make sure
no text can be added in that column and contenteditable="true" on the
images so that they are still editable (even though HTML-specs-wise
adding contenteditable="true" on images probably does not mean much as
images are self-closing tags, our editor understand that as the ability
to edit the image anyway). That contenteditable="true" part is however
removed when leaving edit mode... and was not restored upon entering
edit mode again.
This fixes the problems with a specific JS patch, we'll review to see if
better can be done in master.
Funny enough, that bug was actually gone in 15.0... by mistake. A recent
bug fix actually reintroduced that isolated bug at [2] (by reintroducing
the fact that images in a non-editable environment are not possible to
edit). The 3 opened tickets this commit mentions were actually reported
for 15.0 immediately after that, while the 14.0 being broken about this
since the beginning apparently did not bother anyone.
Note: as a forward-ported fix, this also takes the opportunity to clean
a bit what was done at [3]. (calling `_super`, no duplicated code,
adding comments, ...).
[1]: https://github.com/odoo/odoo/commit/656cac1bf21c7c5a56aa569008aac58436c747fb
[2]: https://github.com/odoo/odoo/commit/e113bae04a64a8bd341a80736086ab7c25079dd3
[3]: https://github.com/odoo/odoo/commit/e2f7b8fad76dc816b2f6864340d3740446117cdb
opw-3031217
opw-3032482
opw-3035289
closes odoo/odoo#104521
X-original-commit: 1636ba5ed2f8a284bef0930313a85cc3dc7cf072
Signed-off-by: Romain Derie (rde) <rde@odoo.com >
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com >
2022-10-31 16:03:21 +01:00
..
2022-10-31 13:39:58 +01:00
2022-10-25 18:44:57 +02:00
2022-10-04 07:28:57 +02:00
2022-10-11 18:56:25 +02:00
2022-10-09 22:04:00 +02:00
2022-10-25 18:44:57 +02:00
2022-09-24 15:00:56 +02:00
2022-09-20 13:48:49 +02:00
2022-10-28 14:20:59 +02:00
2022-10-25 18:44:57 +02:00
2022-10-28 12:20:59 +02:00
2022-09-17 00:51:32 +02:00
2022-10-09 22:04:00 +02:00
2022-09-20 13:48:49 +02:00
2022-09-16 20:51:56 +02:00
2022-09-16 20:51:56 +02:00
2022-10-06 14:56:52 +02:00
2022-10-11 13:15:12 +02:00
2022-10-06 14:56:52 +02:00
2022-10-06 14:56:52 +02:00
2022-09-20 13:48:49 +02:00
2022-10-07 14:36:49 +02:00
2022-10-25 13:03:07 +02:00
2022-10-21 17:17:07 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-30 09:31:52 +02:00
2022-09-20 13:48:49 +02:00
2022-09-30 09:31:52 +02:00
2022-10-26 14:05:26 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 20:19:49 +02:00
2022-10-28 14:21:13 +02:00
2022-10-27 14:41:19 +02:00
2022-09-08 09:38:35 +02:00
2022-09-20 13:48:49 +02:00
2022-10-26 00:55:05 +02:00
2022-10-17 12:13:24 +02:00
2022-10-25 15:03:28 +02:00
2022-10-26 19:03:55 +02:00
2022-10-25 16:12:05 +02:00
2022-09-20 13:48:49 +02:00
2022-10-06 18:00:49 +02:00
2022-10-11 13:15:12 +02:00
2022-10-06 14:56:52 +02:00
2022-10-07 11:13:17 +02:00
2022-10-06 14:56:52 +02:00
2022-10-07 21:43:23 +02:00
2022-10-06 14:56:52 +02:00
2022-10-29 12:05:55 +02:00
2022-10-10 16:11:01 +02:00
2022-10-04 07:28:57 +02:00
2022-09-28 20:29:50 +02:00
2022-10-10 16:10:52 +02:00
2022-10-25 16:11:59 +02:00
2022-09-14 20:25:01 +02:00
2022-10-31 11:41:54 +01:00
2022-10-28 20:39:58 +02:00
2022-10-23 12:30:03 +02:00
2022-10-27 10:37:37 +02:00
2022-09-30 09:32:23 +02:00
2022-09-24 15:00:56 +02:00
2022-10-28 20:39:58 +02:00
2022-10-27 10:37:34 +02:00
2022-09-30 09:31:52 +02:00
2022-10-21 11:09:14 +02:00
2022-10-21 11:09:22 +02:00
2022-10-06 14:56:52 +02:00
2022-10-28 20:39:58 +02:00
2022-10-27 16:44:13 +02:00
2022-10-06 14:56:52 +02:00
2022-10-06 19:04:28 +02:00
2022-09-29 09:08:50 +02:00
2022-09-14 20:25:01 +02:00
2022-10-28 00:50:40 +02:00
2022-09-20 13:48:49 +02:00
2022-09-14 20:25:01 +02:00
2022-10-26 01:58:35 +02:00
2022-10-21 12:06:04 +02:00
2022-09-15 22:37:50 +02:00
2022-09-26 09:36:02 +02:00
2022-10-09 22:04:00 +02:00
2022-09-20 13:48:49 +02:00
2022-10-28 20:39:58 +02:00
2022-09-20 13:48:49 +02:00
2022-10-18 21:48:02 +02:00
2022-10-25 18:44:57 +02:00
2022-10-24 14:11:58 +02:00
2022-10-25 18:44:57 +02:00
2022-09-16 20:51:56 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-09-13 13:53:04 +02:00
2022-09-13 13:53:04 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-10-25 18:44:57 +02:00
2022-10-25 18:44:57 +02:00
2022-10-25 18:44:57 +02:00
2022-10-04 13:29:08 +02:00
2022-09-14 20:25:01 +02:00
2022-08-31 16:05:10 +02:00
2022-08-25 19:56:56 +02:00
2022-10-19 16:09:55 +02:00
2022-10-19 16:09:55 +02:00
2022-10-19 16:09:55 +02:00
2022-10-25 18:44:57 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-10-11 16:57:11 +02:00
2022-10-05 11:04:20 +02:00
2022-10-09 22:04:00 +02:00
2022-10-04 13:29:08 +02:00
2022-10-08 15:20:55 +02:00
2022-10-28 09:17:43 +02:00
2022-10-25 18:44:57 +02:00
2022-10-08 17:02:51 +02:00
2022-10-25 18:44:57 +02:00
2022-10-25 18:44:57 +02:00
2022-10-28 08:22:56 +02:00
2022-10-21 11:09:14 +02:00
2022-09-13 13:53:04 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-09-13 13:53:04 +02:00
2022-09-16 11:12:29 +02:00
2022-10-04 13:29:08 +02:00
2022-10-28 08:22:57 +02:00
2022-09-13 13:53:04 +02:00
2022-10-21 11:09:14 +02:00
2022-10-27 08:44:49 +02:00
2022-10-25 18:44:57 +02:00
2022-09-14 20:25:01 +02:00
2022-08-25 19:56:55 +02:00
2022-09-02 23:15:44 +02:00
2022-10-04 13:29:08 +02:00
2022-10-26 21:51:54 +02:00
2022-09-27 12:43:44 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-09-30 22:54:47 +02:00
2022-10-04 13:29:08 +02:00
2022-10-06 10:42:51 +02:00
2022-09-13 13:53:04 +02:00
2022-10-04 13:29:08 +02:00
2022-09-24 15:00:56 +02:00
2022-10-04 13:29:08 +02:00
2022-10-07 12:41:12 +02:00
2022-10-04 13:29:08 +02:00
2022-10-25 16:12:15 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-09-13 13:53:04 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-10-25 13:03:28 +02:00
2022-10-24 13:05:52 +02:00
2022-10-25 21:20:50 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-09-13 13:53:04 +02:00
2022-10-04 13:29:08 +02:00
2022-10-28 13:22:56 +02:00
2022-10-04 13:29:08 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-08-25 19:56:56 +02:00
2022-10-25 21:20:50 +02:00
2022-10-04 13:29:08 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-09-13 13:53:04 +02:00
2022-10-10 16:11:01 +02:00
2022-10-17 13:09:20 +02:00
2022-09-20 13:48:49 +02:00
2022-10-26 16:07:18 +02:00
2022-10-31 12:42:18 +01:00
2022-10-11 13:15:53 +02:00
2022-10-06 14:56:52 +02:00
2022-09-24 15:00:56 +02:00
2022-10-21 11:09:14 +02:00
2022-10-26 19:03:58 +02:00
2022-09-06 12:01:29 +02:00
2022-09-06 12:01:29 +02:00
2022-10-06 14:56:52 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-28 20:29:51 +02:00
2022-10-25 16:11:59 +02:00
2022-10-26 16:07:18 +02:00
2022-10-28 22:44:49 +02:00
2022-10-25 14:03:21 +02:00
2022-09-20 13:48:49 +02:00
2022-10-05 14:26:14 +02:00
2022-10-05 14:26:14 +02:00
2022-10-06 19:03:49 +02:00
2022-09-20 13:48:49 +02:00
2022-10-24 14:12:23 +02:00
2022-10-26 15:06:48 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-18 18:58:37 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-18 18:58:37 +02:00
2022-10-12 08:33:40 +02:00
2022-10-18 18:58:37 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-28 09:17:56 +02:00
2022-10-26 00:55:05 +02:00
2022-10-31 14:34:02 +01:00
2022-10-18 13:17:31 +02:00
2022-09-24 15:00:56 +02:00
2022-10-20 09:20:54 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-24 15:00:56 +02:00
2022-10-21 15:19:13 +02:00
2022-10-28 10:17:52 +02:00
2022-09-24 15:00:56 +02:00
2022-10-24 16:12:54 +02:00
2022-09-14 21:22:05 +02:00
2022-10-28 14:21:01 +02:00
2022-09-23 00:39:01 +02:00
2022-09-26 18:00:06 +02:00
2022-09-27 06:43:42 +02:00
2022-10-25 11:07:08 +02:00
2022-10-06 23:14:19 +02:00
2022-10-11 14:10:15 +02:00
2022-10-28 19:42:46 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-10-29 12:05:55 +02:00
2022-10-06 14:56:52 +02:00
2022-10-28 13:23:06 +02:00
2022-10-17 10:11:09 +02:00
2022-09-24 15:00:56 +02:00
2022-10-28 14:21:08 +02:00
2022-10-17 10:11:09 +02:00
2022-10-08 13:30:24 +02:00
2022-10-14 09:18:13 +02:00
2022-10-31 10:41:44 +01:00
2022-09-20 13:48:49 +02:00
2022-10-10 13:00:43 +02:00
2022-10-27 10:37:40 +02:00
2022-10-05 19:38:45 +02:00
2022-10-27 10:37:40 +02:00
2022-10-28 20:39:58 +02:00
2022-10-25 16:12:04 +02:00
2022-10-29 12:05:55 +02:00
2022-10-27 18:43:08 +02:00
2022-09-20 13:48:49 +02:00
2022-09-27 12:43:50 +02:00
2022-10-24 17:07:10 +02:00
2022-10-11 20:25:36 +02:00
2022-10-03 21:23:00 +02:00
2022-10-09 22:03:50 +02:00
2022-10-10 19:55:43 +02:00
2022-10-28 09:17:50 +02:00
2022-09-23 07:21:37 +02:00
2022-10-09 22:03:50 +02:00
2022-10-18 13:16:57 +02:00
2022-10-24 21:52:06 +02:00
2022-10-17 12:13:25 +02:00
2022-10-28 20:39:58 +02:00
2022-10-28 20:39:58 +02:00
2022-09-20 13:48:49 +02:00
2022-10-27 18:43:14 +02:00
2022-10-28 08:22:57 +02:00
2022-10-27 18:43:14 +02:00
2022-10-04 08:30:44 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-10-04 08:30:44 +02:00
2022-10-12 18:58:43 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-10-06 18:00:54 +02:00
2022-10-28 17:18:13 +02:00
2022-10-28 09:17:45 +02:00
2022-08-29 22:42:54 +02:00
2022-09-20 13:48:49 +02:00
2022-10-23 12:30:03 +02:00
2022-09-20 13:48:49 +02:00
2022-10-28 00:50:54 +02:00
2022-10-10 16:11:01 +02:00
2022-08-25 19:56:48 +02:00
2022-09-06 10:57:59 +02:00
2022-09-24 10:53:11 +02:00
2022-10-28 20:39:58 +02:00
2022-10-28 20:39:58 +02:00
2022-10-26 00:55:05 +02:00
2022-09-01 15:32:44 +02:00
2022-10-04 16:01:19 +02:00
2022-10-12 10:34:45 +02:00
2022-10-20 12:19:25 +02:00
2022-09-09 13:38:08 +02:00
2022-10-06 00:37:25 +02:00
2022-09-24 15:00:56 +02:00
2022-10-06 14:56:52 +02:00
2022-10-28 22:44:39 +02:00
2022-10-28 09:17:40 +02:00
2022-10-27 14:41:17 +02:00
2022-10-27 14:41:17 +02:00
2022-10-27 14:41:17 +02:00
2022-10-31 16:03:21 +01:00
2022-10-28 18:50:49 +02:00
2022-09-12 17:33:39 +02:00
2022-10-09 22:04:00 +02:00
2022-10-12 10:35:05 +02:00
2022-10-12 10:35:05 +02:00
2022-10-28 18:50:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-24 15:00:56 +02:00
2022-09-20 13:48:49 +02:00
2022-09-06 12:01:37 +02:00
2022-10-12 10:35:05 +02:00
2022-10-12 10:35:05 +02:00
2022-10-26 10:39:03 +02:00
2022-10-10 19:03:15 +02:00
2022-10-12 10:35:05 +02:00
2022-09-20 13:48:49 +02:00
2022-09-14 20:25:01 +02:00
2022-10-06 14:56:52 +02:00
2022-10-28 18:50:49 +02:00
2022-10-25 14:03:08 +02:00
2022-09-14 20:25:01 +02:00
2022-10-10 16:11:01 +02:00
2022-10-28 20:39:58 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-10-12 10:35:05 +02:00
2022-08-31 23:50:06 +02:00
2022-10-28 09:17:57 +02:00
2022-09-09 13:38:08 +02:00
2022-09-09 13:38:08 +02:00
2022-10-06 14:56:52 +02:00
2022-10-31 16:03:21 +01:00
2022-09-14 20:25:01 +02:00
2022-10-06 14:56:52 +02:00
2022-10-04 16:01:08 +02:00
2022-09-20 13:48:49 +02:00
2022-10-06 14:56:52 +02:00
2022-10-12 10:35:05 +02:00
2022-09-12 12:43:41 +02:00
2022-09-20 19:21:15 +02:00
2022-10-02 23:19:45 +02:00
2022-10-12 10:35:05 +02:00
2022-09-20 13:48:49 +02:00
2022-10-24 14:12:34 +02:00
2022-09-20 13:48:49 +02:00
2022-10-28 18:50:49 +02:00
2022-10-12 10:35:05 +02:00
2022-10-06 14:56:52 +02:00
2022-09-20 13:48:49 +02:00