From d08c9aab4249511151e9d4db78cdc1bf1e792016 Mon Sep 17 00:00:00 2001 From: "Mehdi Outagant (MOU)" Date: Mon, 8 Jan 2024 15:58:38 +0100 Subject: [PATCH] =?UTF-8?q?[REM]=20website:=20remove=20the=20=E2=80=9CMode?= =?UTF-8?q?l=20Pages=E2=80=9D=20menu=20item?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On website (with “developer” mode enabled), The “Model Pages” menu item is accessible even when there are no created module page records, which is not relevant in most use cases. The code from [1] introduced a way to expose models (both manual and existing models) publicly on the website by creating pages for them, these records are accessible through the model pages' menu (which is currently visible in debug mode only). A first spec aimed to make this menu item visible only when module pages are created for the current website, But since we need to perform async calls for that (to check if some module page records exist), and after further discussion, it was decided to remove it completely. [1]: https://github.com/odoo/odoo/commit/198e226f5bd66dba6598d1ef85e5fa5fb82b38b2 task-3659626 closes odoo/odoo#148175 Signed-off-by: Romain Derie (rde) --- addons/website/views/website_controller_pages_views.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/website/views/website_controller_pages_views.xml b/addons/website/views/website_controller_pages_views.xml index ccc9007d436..9498ad1acbd 100644 --- a/addons/website/views/website_controller_pages_views.xml +++ b/addons/website/views/website_controller_pages_views.xml @@ -78,6 +78,7 @@ sequence="10" name="Model Pages" groups="base.group_no_one" - action="action_website_controller_pages_list" /> + action="action_website_controller_pages_list" + active="False" />