From 19aa9c9ebdbd1f8366a670fe3627a0322db6066b Mon Sep 17 00:00:00 2001 From: diagnoza Date: Wed, 20 Sep 2023 15:12:15 +0000 Subject: [PATCH] [REF] base: introduce hierarchical structure of menus Introduces a hierarchical structure of some menus. Reasons: 1. Allows testing the child-parent relation of specifically those menus that do not have `parent` or `parent_id` attribute in the source xml using standard menus. It's likely a rare use case, but that's precisely what we currently need in https://github.com/odoo/upgrade/pull/5163 2. Provides a unique example usage of menus written in this manner as opposed to using the `parent` attribute closes odoo/odoo#136069 Signed-off-by: Christophe Simonis (chs) --- odoo/addons/base/views/base_menus.xml | 36 +++++++++++++++------------ 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/odoo/addons/base/views/base_menus.xml b/odoo/addons/base/views/base_menus.xml index 03685710c5c..b2fa50ca6dd 100644 --- a/odoo/addons/base/views/base_menus.xml +++ b/odoo/addons/base/views/base_menus.xml @@ -6,25 +6,29 @@ id="menu_administration" web_icon="base,static/description/settings.png" sequence="550" - groups="base.group_erp_manager"/> - - + groups="base.group_erp_manager"> + - - - - - + + + + + - - - - - - - + - + + + + + + + + + + + +