This question has been flagged
2 Replies
9757 Views

Can someone please tell me, how to change menu and action names from a custom module

Kind Regards,

Narender

Avatar
Discard
Author

Thanks for your answer atchuthan. I have tried that before, but unfortunately the changes are not getting reflected on odoo

Best Answer

For MENU, we use object="ir.ui.menu"
<record id="MODULENAME.external_id" model="ir.ui.menu">
        <field name="name">CHANGE NAME HERE</field>
</record>

For WINDOW ACTION, we use object="ir.actions.act_window"
<record id="MODULENAME.external_id" model="ir.actions.act_window">
        <field name="name">CHANGE NAME HERE</field>
</record>

This can be applied for all the models and you can set the field value with
<field name="FIELD AVAILABLE @ model">CHANGE VALUE</field>

Avatar
Discard

did you add your view.xml file in __openerp__.py? If your view is not loaded, then menu or action won't be changed automatically

Best Answer

for action:

        <record id="sale.action_sale_order_make_invoice" model="ir.actions.act_window">
            <field name="name">Modified Name</field
        </record

for menu:

<menuitem parent=”base.menu_sales” name=”Leads”
id=”crm.menu_crm_case_categ0_act_leads” action=”crm.crm_case_category_act_leads_all” sequence=”1″ />

Avatar
Discard