2017-08-15 52 views
0

我想在Sales/Sales/Opportunities(CRM)中更改菜單「機會」的名稱。如何更改現有菜單項的名稱

我試過這段代碼:

<menuitem 
     id="crm.menu_crm_opportunities" 
     parent="base.menu_sales" 
     name="Affaire" 
     sequence="4" 
     groups="base.group_sale_salesman,base.group_sale_manager"/> 

但它不工作;我會怎麼做?

回答

1
<record model="ir.ui.menu" id="crm.menu_crm_opportunities"> 
     <field name='name'>Affaire</field> 
    </record> 

請使用上面的代碼改變現有的菜單項名稱的名稱。

0

試圖改變這一

**<field name="name">Opportunities</field>** 

<record model="ir.actions.act_window" id="crm_case_category_act_oppor11"> 
    <field name="name">Opportunities</field> 
    <field name="res_model">crm.lead</field> 
    <field name="view_mode">kanban,tree,graph,form,calendar</field> 
    <field name="domain">[('type','=','opportunity')]</field> 
    <field name="context">{ 
      'stage_type': 'opportunity', 
      'default_type': 'opportunity', 
      'default_user_id': uid 
     } 
    </field> 
    <field name="view_id" eval="False"/> 
    <field name="search_view_id" ref="crm.view_crm_case_opportunities_filter"/> 
    <field name="help" type="html"> 
     <p> 
      Odoo helps you keep track of your sales pipeline to follow 
      up potential sales and better forecast your future revenues. 
     </p><p> 
      You will be able to plan meetings and phone calls from 
      opportunities, convert them into quotations, attach related 
      documents, track all discussions, and much more. 
     </p> 
    </field> 
</record> 


<menuitem name="Opportunities" id="menu_crm_opportunities" parent="base.menu_sales" sequence="4" 
     action="crm_case_category_act_oppor11" 
     groups="base.group_sale_salesman,base.group_sale_manager"/> 

在crm_lead_menu.xml