Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
20483 Представления

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

Аватар
Отменить
Лучший ответ

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

Автор

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

Лучший ответ

<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)

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?

I didnt get your question,Anuradha.

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

Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
4
дек. 21
11591
0
дек. 24
441
3
дек. 21
8829
4
окт. 19
32648
1
апр. 17
3247