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.

1

How to create menu item in xml file in OpenERP 7

By
mihir shah
on 4/5/13, 4:41 AM 9,789 views

while developing a demo module in openerp v7. i want my module name to be displayed on the main menu for that i am using the following code

<menuitem id="main_menu_demo_module" name="Demo Module"/>

    <!-- Main Parent Menu-->
    <menuitem id="main_parent_menu_demo_module" 
            name="Demo Module" parent="main_menu_demo_module"/>

but it still not appearing on to the main menu

6

Francesco OpenCode

--Francesco OpenCode--
3608
| 5 7 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
On 4/5/13, 5:27 AM

If you have a menu but it hasn't a submenu with a valid action, OpenERP doesn't show it. You must create a main menu (the main that appears in the top bar menu), a section main menu (the violet menu in the section) and a valid menu (the real clickable menu):

<menuitem id="main_menu" name="Main"/>
    <menuitem id="section_main_menu" parent="main_menu" />
    <menuitem id="real_menu" parent="section_main_menu" action="your_action"/>

thanks francesco it solved my problem to some extent

mihir shah
on 4/5/13, 5:42 AM

good....:)

Francesco OpenCode
on 4/5/13, 5:43 AM

hey francesco you were rite we always need a valid sub menu action to see the mian menu

mihir shah
on 4/6/13, 10:43 AM
2

Remya

--Remya--
5813
| 7 8 8
Thiruvananthapuram, India
--Remya--

Working as an Senior ODOO developer. http://in.linkedin.com/pub/remya-r/69/a23/298

Remya
On 4/5/13, 5:27 AM

<menuitem id="“menu_test_base_main”" name="“Test" base”=""/> <menuitem id="“menu_test_base”" parent="“menu_test_base_main”" name="“Test" base”="" action="“action_test_seq”/">

@Remya how to customize theme & some other functionality in helpdesk module. (Sales => Configuration = > Helpdesk => Categories)

Vj
on 4/24/13, 4:00 AM

I want a menuitem which displays all the filenames in a folder in screen. I dnt want to use database. how can i achive this?

Anuradha
on 9/11/13, 3:30 AM

I didnt get your question,Anuradha.

Remya
on 9/13/13, 2:06 AM

@Remya . Its ok i solved the issue by using database itself

Anuradha
on 9/13/13, 2:09 AM
0
Pablo
On 4/5/13, 4:53 AM

On base/base_menu.xml:13

    <!-- Top menu item -->
    <menuitem name="Settings"
        id="menu_administration"
        sequence="500"/>

So I'd suggest that you remove the parent attribute on your code

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: 4/5/13, 4:41 AM
Seen: 9789 times
Last updated: 3/16/15, 8:10 AM