콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
10838 화면

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

베스트 답변

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

베스트 답변

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

아바타
취소