Odoo Help

0

How to change menu and action names in python

By
Narender
on 2/12/15, 9:16 AM 1,725 views

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

Kind Regards,

Narender

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

Narender
on 2/12/15, 9:43 AM
0

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>

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

Atchuthan - Technical Consultant, Sodexis Inc
on 2/12/15, 9:46 AM
0
Vasanth
On 2/12/15, 9:49 AM

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″ />

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 2/12/15, 9:16 AM
Seen: 1725 times
Last updated: 3/16/15, 8:10 AM