Mahenina Reney
Mahenina Reney

Reputation: 1

how to add a menuitem inheritance in an internal module odoo for example CRM?

How to add a menuitem inheritance in an internal module odoo for example CRM?

I try this but I think it does not mean anything

<record model="ir.ui.view" id="crm_geo_list">
    <field name="inherit_id" ref="crm.crm_menu_root"/>
    <field name="arch" type="xml">
        <menuitem parent="crm.crm_menu_root" position="inside" id="main_geoagenc" name="Agenc Geo"/>
    </field>
</record>

Upvotes: 0

Views: 1314

Answers (1)

Mihir Dabgar
Mihir Dabgar

Reputation: 311

You can't inherited the menuitem you want to change in default menuitem just overwrite it like this..

<menuitem id="crm.crm_config_settings_menu"
        name="Settings"
        parent="crm.crm_menu_config"
        action="crm.crm_config_settings_action"
        groups="base.group_system"
        sequence="0"/>

and you can add the menu in child of that so.. you can add new menu in your module and add in parent of the default so it will add on that parent.

Upvotes: 1

Related Questions