Search code examples
pythonodooodoo-13

Menu items not visible in developer mode odoo V13


There are few modules only visible in developer mode. I need to visible it in non-develope mode. How can i do it?

My findings:

I have few xml views in common folder which has xml alone with out <menuitems> and in later point in another folder I have listed all the menuitems from common folder as well as current folder menu items to the order i want.

why i need to place the menuitems in other folder ?

If i place the menu items in the common folder, odoo is giving them first as per menu sequences by default.But i need it later. so i combined all the menu items to the order i want in current folder.

It works in Developer mode without any issues. But in non developer mode it isn't. I have also verified if any groups is making this but no.

I hope i made some sense.


Solution

  • If you want to make visible the invisible menu items in Odoo so for that you've to remove the groups from the menu items like.

    <menuitem id="warranty_management_root" parent="stock.menu_stock_config_settings"
                      groups="warranty_management.group_stock_warranty" name="Warranty"/>
    

    After removing

    <menuitem id="warranty_management_root" parent="stock.menu_stock_config_settings"
                       name="Warranty"/>
    

    Secondly if there is no group in menu items there is another way to assign groups to menu item like this.

    <record id="hr.menu_hr_root" model="ir.ui.menu" >
         <field name="groups_id" eval="[(6, 0, [ref('module_name.group_hr_menu')])]"/>
    </record>
    

    Just remove this code or comment it will work for you.