From dac80feb84d213e5e0a1aa140fa019944ea4e826 Mon Sep 17 00:00:00 2001
From: "Guillaume (gdi)" <gdi@odoo.com>
Date: Fri, 31 Mar 2023 07:59:25 +0000
Subject: [PATCH] [FIX] web: remove prohibited dropzones of the menu editor

In the website menu editor and in the studio menu editor, the user can
drag & drop the elements that constitute the menu of his website/app.
Users can also put a menu into another menu to create a sub-menu. For
the website, we allow two levels of menu but not more. For studio we
allow 5 levels of menu. When the user starts to drag an item, dropzones
can be drawn on the prohibited level (3 in website, 6 in studio) while
he can't create this level of menu. This commit adds a css rule to hide
those forbidden dropzones.

task-3251032

closes odoo/odoo#117300

Signed-off-by: loco-odoo <loco@odoo.com>
---
 addons/web/static/src/scss/modal.scss | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/addons/web/static/src/scss/modal.scss b/addons/web/static/src/scss/modal.scss
index 7518fe24ba7d..892d91cfc508 100644
--- a/addons/web/static/src/scss/modal.scss
+++ b/addons/web/static/src/scss/modal.scss
@@ -18,6 +18,11 @@
                 padding: 0;
             }
 
+            // Fix dropzones of nested sortable.
+            .mjs-nestedSortable-error {
+                outline: none;
+            }
+
             .o_modal_header {
                 @include o-webclient-padding($top: 10px, $bottom: 10px);
                 @include clearfix;
-- 
GitLab