3
votes

I'm install my custom module but module link in menu is not visible!

I'm trying to change sequences but again in not visible, in apps/modul name stay:

Created Menus MY MENU

Where is problem here?

<menuitem name="MY MENU" id="my_menu_1" action="action_my_menu_form" sequence="55"/>
2
1. Try giving access rights to that model for that user, which is been used for that menu. 2./ Try giving parent menu, under which this menu should appear. - Hardik Patadia
@HardikPatadia Hi, I'm add parent menu eg. Sale but not visible again, after try create group in settings also can't find my menu name in menus tab. - Pointer
Set default access rights for your model. that should help. Otherwise only the admin is allowed to see the menu item - JordyRitzen

2 Answers

3
votes

In Odoo Menu-Item parent-id is required.

If you not give parent menu item then odoo will consider menu item as Parent Menu item.

You have done same thing.create menu item without parent-id,so odoo will consider as parent menu.

Ex:

Sales Is parent Menu. ( In base module)

    <menuitem name="Sales"
        id="menu_base_partner"
        groups="base.group_sale_salesman"
        sequence="20"/>

Product is Child Menu.

    <menuitem id="menu_product" name="Products" parent="base.menu_base_partner" action="product_action_window" sequence="9"/>

Parent Menu item is base.menu_base_partner.

Child Menu item is menu_product.

If you create only Parent menu item then Child menu item will not visible in the system.

1
votes

When the menu is not shown (if any one know other cases put it in comment ) sorry for my english:

  1. The menu has no child menu and it has not an action
  2. the menu has childrens menus but also the children have no action
  3. menu or childs menus have action but you are not allowed by group security.
  4. (ir.model.access)you have acces to menu but you don't have acces to read record from the model related to the action. super user (administrator) can acces any record.
    1. or you didn't upgrade you module correctly the menu is not loaded at all for this problem see in developper mode if the menu is loaded to the database.