[IMP] calendar, repair: move action from root menu to new menu

before this commit, the repair orders is directly
linked with the root menu of repair application and if you user opens the repair app, repair orders
action is shown as it is linked with the main menu.

similarly in the calendar app, the calendar is linked
with the root menu calendar.

but now if user move to reporting or configuration menu of repair app, there is no menu to access the repair orders.

with the new milk redesign on clicking the root menu user will be taken to home screen, where us there is hamburger menu in previous design to navigate to home screen.

so only way for user to access the repair order menu is to go back to home screen and come back.

similarly in the calendar app, if user takes the
configuration menu, in order to access the calendar, user
has to go to home screen and come back.

after this commit, a new sub menu is introduced in both
app and moved the action linked with root menu to
the newly added sub menu.

closes odoo/odoo#126329

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
niyasraphy
2023-08-23 10:03:25 +02:00
parent d1f9b17f51
commit 8cd9db0923
2 changed files with 13 additions and 3 deletions
+8 -1
View File
@@ -471,10 +471,17 @@
id="mail_menu_calendar"
name="Calendar"
sequence="10"
action="action_calendar_event"
web_icon="calendar,static/description/icon.png"
groups="base.group_user"/>
<menuitem
id="calendar_event_menu"
name="Calendar"
sequence="10"
action="action_calendar_event"
parent="mail_menu_calendar"
groups="base.group_user"/>
<menuitem
id="calendar_menu_config"
parent="calendar.mail_menu_calendar"
+5 -2
View File
@@ -368,8 +368,11 @@
</field>
</record>
<menuitem action="action_repair_order_tree" id="menu_repair_order" groups="stock.group_stock_user" name="Repairs" sequence="165"
web_icon="repair,static/description/icon.png"/>
<menuitem id="menu_repair_order" groups="stock.group_stock_user" name="Repairs" sequence="165"
web_icon="repair,static/description/icon.png"/>
<menuitem id="repair_order_menu" name="Orders" action="action_repair_order_tree" groups="stock.group_stock_user"
parent="menu_repair_order"/>
<menuitem id="repair_menu_reporting" name="Reporting" parent="menu_repair_order" groups="stock.group_stock_manager"/>