Skip to Content
Menu
This question has been flagged
1 Reply
3932 Views

Hello,

I just created a new module in odoo 12 and then I modify the views.xml file by adding these lines of code:

<!-- Top menu item -->

    <menuitem name="fmodule" id="fmodule.menu_root"/>

    <!-- menu categories -->

    <menuitem name="test 1" id="fmodule.menu_1" parent="fmodule.menu_root"/>

    <menuitem name="test 2" id="fmodule.menu_2" parent="fmodule.menu_root"/>

    <!-- actions -->

    <menuitem name="List" id="fmodule.menu_1_list" parent="fmodule.menu_1"

              action="fmodule.action_window"/>

    <menuitem name="Server to list" id="fmodule" parent="fmodule.menu_2"

              action="fmodule.action_server"/>

But it does not appear in the menu.

Avatar
Discard
Best Answer

You have to write an action definition for a menu item. Then only it gets displayed. Please go through the documentation.

https://www.odoo.com/documentation/12.0/reference/actions.html

Avatar
Discard