Odoo Help

Welcome!

This community 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.

0

How to change menu and action names in python

By
Narender
on 2/12/15, 9:16 AM 1,194 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

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3918
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 2/12/15, 9:39 AM

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

--Vasanth--
3458
| 5 3 8
Pondicherry, India
--Vasanth--
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″ />

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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