Soukéina Bojabza and qsm-odoo
1fdcfab6ee
[FIX] web_editor: prevent inner snippets to toggle the grid mode
...
In [1], conditions have been made in order to allow/forbid each snippet
to toggle the grid mode. However, a case has been forgotten: when a
snippet that cannot toggle the grid mode is dropped inside a snippet
that can toggle it (so it is an inner snippet). Indeed, if we drag one
of the inner snippet columns, we can see that the grid mode is toggled,
where it should not be the case.
This issue comes from the check looking if the grid layout option is
in the right panel. Indeed, even though such a snippet does not have
it, if it is dropped inside a snippet that can toggle the grid mode,
then the option is well present in the right panel (= the outer snippet
one).
This commit fixes this issue by improving the check: now, dragging a
column can toggle the grid mode only if the container having the option
is the same as the one of the column. This commit also improves the
siblings/children filtering (to only have the relevant dropzones) in
order to take this case into account and to be more robust to
customizations.
Steps to reproduce:
- drop a Text-Image snippet
- drop a Form snippet inside one of the columns
- drag a form field
=> the grid mode is toggled.
[1]: https://github.com/odoo/odoo/commit/84d684d8bdf43d3db11defd8174dee44775085c2
opw-3100399
opw-3139938
closes odoo/odoo#110888
X-original-commit: 34b534f75dbf3e4c475ca8cc40c8fafde5dbea5d
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com >
Co-authored-by: qsm-odoo <qsm@odoo.com >
2023-01-24 23:21:49 +01:00
..
2023-01-24 21:11:06 +01:00
2023-01-24 10:20:30 +01:00
2023-01-11 22:43:27 +01:00
2023-01-16 09:32:51 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 16:18:33 +01:00
2023-01-24 16:18:33 +01:00
2022-12-13 11:47:49 +01:00
2022-11-23 21:56:09 +01:00
2023-01-24 10:20:30 +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-24 10:20:30 +01:00
2023-01-24 17:34:48 +01:00
2023-01-24 10:20:30 +01:00
2022-11-24 19:25:14 +01:00
2022-11-09 16:08:07 +01:00
2023-01-24 10:20:30 +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-24 10:20:30 +01:00
2022-11-21 21:18:53 +01:00
2022-12-20 10:23:54 +01:00
2023-01-24 10:20:30 +01:00
2023-01-17 20:59:05 +01:00
2023-01-19 09:13:17 +01:00
2023-01-24 21:10:55 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2022-11-24 13:29:05 +01:00
2023-01-24 10:20:30 +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-24 10:20:38 +01:00
2023-01-17 18:12:48 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2022-12-14 22:03:58 +01:00
2023-01-20 21:56:55 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2022-12-16 16:17:41 +01:00
2023-01-24 08:09:42 +01:00
2023-01-11 22:43:14 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2022-12-12 18:16:17 +01:00
2022-12-06 10:52:26 +01:00
2023-01-24 16:18:20 +01:00
2022-12-19 13:38:09 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2022-12-16 16:17:41 +01:00
2023-01-24 10:20:30 +01:00
2022-12-09 10:45:02 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-05 15:37:04 +01:00
2023-01-24 10:20:30 +01:00
2023-01-17 20:58:34 +01:00
2023-01-24 21:10:36 +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-24 10:20:30 +01:00
2023-01-18 17:38:01 +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-23 20:27:05 +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
2023-01-23 16:01:27 +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
2023-01-18 13:25:32 +01:00
2023-01-18 13:25:32 +01:00
2023-01-24 16:18:23 +01:00
2023-01-18 13:25:32 +01:00
2023-01-18 13:25:32 +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
2023-01-24 16:18:27 +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-19 17:49:11 +01:00
2023-01-23 16:01:27 +01:00
2023-01-10 15:43:16 +01:00
2023-01-24 16:18:18 +01:00
2023-01-23 16:01:27 +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 12:22:49 +01:00
2023-01-17 19:55:50 +01:00
2023-01-16 10:32:17 +01:00
2023-01-19 17:49:17 +01:00
2023-01-17 12:59:05 +01:00
2023-01-23 16:01:27 +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-18 20:04:13 +01:00
2023-01-23 22:37:28 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-01-20 17:52:16 +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-21 18:34:50 +01:00
2023-01-17 19:55:50 +01:00
2022-12-09 19:45:52 +01:00
2023-01-19 09:13:03 +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-18 17:37:44 +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-23 16:01:27 +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-24 21:11:25 +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-20 06:21:02 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 17:34:48 +01:00
2022-10-31 18:52:59 +01:00
2022-11-11 17:54:39 +01:00
2023-01-24 10:20:30 +01:00
2023-01-17 20:58:34 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +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-24 21:10:58 +01:00
2023-01-24 21:11:06 +01:00
2023-01-11 13:20:48 +01:00
2023-01-24 10:20:30 +01:00
2022-11-14 13:01:57 +01:00
2023-01-24 10:20:30 +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-24 10:20:30 +01:00
2023-01-10 13:40:01 +01:00
2023-01-20 18:54:44 +01:00
2022-11-29 13:20:31 +01:00
2023-01-05 16:51:56 +01:00
2023-01-20 18:54:44 +01:00
2023-01-05 16:51:56 +01:00
2023-01-20 18:54:44 +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
2023-01-20 18:54:44 +01:00
2023-01-05 16:51:56 +01:00
2023-01-20 18:54:44 +01:00
2023-01-20 18:54:44 +01:00
2023-01-05 16:51:56 +01:00
2023-01-05 16:51:56 +01:00
2023-01-20 18:54:44 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 13:47:09 +01:00
2023-01-24 10:20:30 +01:00
2023-01-23 16:01:27 +01:00
2023-01-23 16:01:27 +01:00
2023-01-23 16:01:27 +01:00
2023-01-23 16:01:27 +01:00
2023-01-24 13:47:12 +01:00
2023-01-23 16:01:27 +01:00
2023-01-24 10:20:30 +01:00
2023-01-23 16:01:27 +01:00
2023-01-24 10:20:30 +01:00
2023-01-23 16:01:27 +01:00
2023-01-23 16:01:27 +01:00
2023-01-23 16:01:27 +01:00
2023-01-23 16:01:27 +01:00
2023-01-19 18:49:53 +01:00
2023-01-23 16:01:27 +01:00
2023-01-23 16:01:27 +01:00
2023-01-24 10:20:30 +01:00
2022-12-01 16:27:58 +01:00
2023-01-24 10:20:30 +01:00
2023-01-17 20:58:34 +01:00
2023-01-06 18:41:46 +01:00
2023-01-23 20:27:19 +01:00
2023-01-04 11:35:49 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 21:10:38 +01:00
2022-11-09 21:17:46 +01:00
2022-12-19 11:33:49 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 21:11:06 +01:00
2023-01-13 16:27:26 +01:00
2023-01-24 10:20:30 +01:00
2022-12-15 12:37:01 +01:00
2023-01-24 13:47:26 +01:00
2023-01-13 16:27:26 +01:00
2023-01-13 16:27:26 +01:00
2023-01-24 10:20:36 +01:00
2023-01-23 16:01:18 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:53 +01:00
2022-11-10 13:15:39 +01:00
2023-01-18 21:08:52 +01:00
2022-11-29 09:32:45 +01:00
2023-01-24 09:12:01 +01:00
2022-11-09 23:33:27 +01:00
2023-01-24 10:20:30 +01:00
2022-12-14 17:17:52 +01:00
2023-01-24 21:10:58 +01:00
2022-11-09 16:08:19 +01:00
2023-01-18 21:08:52 +01:00
2022-11-25 17:55:59 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:21:01 +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-24 10:20:41 +01:00
2023-01-20 09:41:00 +01:00
2023-01-24 10:20:30 +01:00
2023-01-10 18:54:47 +01:00
2023-01-24 13:47:18 +01:00
2023-01-24 10:20:30 +01:00
2022-12-02 14:40:25 +01:00
2023-01-24 13:47:31 +01:00
2023-01-17 20:59:02 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-13 16:27:17 +01:00
2023-01-24 10:20:30 +01:00
2023-01-12 19:08:55 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 21:10:47 +01:00
2023-01-24 10:20:41 +01:00
2023-01-24 10:20:30 +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-24 10:20:30 +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-18 21:08:52 +01:00
2023-01-20 21:56:48 +01:00
2023-01-17 20:58:39 +01:00
2023-01-24 13:47:18 +01:00
2023-01-17 20:58:42 +01:00
2022-12-09 16:40:58 +01:00
2023-01-18 21:08:52 +01:00
2023-01-20 20:58:12 +01:00
2023-01-20 06:21:02 +01:00
2023-01-24 10:20:56 +01:00
2023-01-24 23:21:49 +01:00
2022-12-15 15:45:07 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 21:10:52 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 21:10:52 +01:00
2023-01-17 20:58:34 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-18 21:08:52 +01:00
2023-01-24 10:20:30 +01:00
2022-12-02 14:40:25 +01:00
2023-01-24 10:20:30 +01:00
2023-01-16 19:45:57 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-17 20:58:41 +01:00
2023-01-16 19:45:57 +01:00
2023-01-24 21:10:52 +01:00
2023-01-24 10:20:30 +01:00
2022-12-06 10:52:50 +01:00
2023-01-24 21:10:52 +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-24 21:10:52 +01:00
2022-12-01 16:27:52 +01:00
2023-01-24 10:20:30 +01:00
2022-12-02 14:40:25 +01:00
2022-12-02 14:40:25 +01:00
2023-01-24 21:10:52 +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-24 10:20:30 +01:00
2022-12-02 14:40:25 +01:00
2023-01-18 21:08:52 +01:00
2023-01-18 21:08:52 +01:00
2023-01-18 21:08:52 +01:00
2023-01-18 21:08:52 +01:00
2023-01-18 21:08:52 +01:00
2023-01-24 10:20:30 +01:00
2023-01-17 18:12:48 +01:00
2023-01-16 19:45:57 +01:00
2023-01-24 10:20:30 +01:00