Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to select a submenu by default after a click on the main menu?

By
Pascal Tremblay
on 11/12/15, 1:52 PM 693 views

Hello there,

In the backend, on the main menu at the top, when we click on Sales, purchases, warehouse or other... 

This is always the first submenu at the top who is selected by default. Here, below on image, « Supplier - PT » is selected by default because it is the first at the top (according to sequence).

Can we change this and select an other submenu by default? Is the only way to select an other submenu is to change sequence in menuitems?

Thanks to help



1

Axel Mendoza

--Axel Mendoza--
10238
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 11/15/15, 1:40 AM

The way to do it is to assign the same action of the submenu you want to the top level menu. For example:

<menuitem name="Top" id="top" action="action2"/>
<menuitem name="Menu 1" id="menu1" action="action1" parent="top"/>
<menuitem name="Menu 2" id="menu2" action="action2" parent="top"/>

That way when the "Top" menu is clicked it will launch the action2 that is the same as the "Menu 2". This will no affect the rest of the menus to be showed or anything else. You can see this behavior on some old dashboards that don't have a menu assigned just a top level menu that trigger the action that show it

Will try it soon. Thanks a lot. I will come back with my results.

Pascal Tremblay
on 11/15/15, 5:59 PM

Did you test it?

Axel Mendoza
on 11/25/15, 7:54 PM

still not

Pascal Tremblay
on 12/7/15, 4:01 PM

This way, I can open the right view when I click on the menu. The view opens. But the sub-menu is not rightly selected. No submenu is selected (changed color). But I get the view I want. Thanks.

Pascal Tremblay
on 12/7/15, 6:40 PM
1

Ray Carnes

--Ray Carnes--
15717
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 11/12/15, 1:56 PM

The only way I know to change this is to change the sequence, which moves another menu to the 'top' position.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 11/12/15, 1:52 PM
Seen: 693 times
Last updated: 12/7/15, 6:37 PM