如何更改现有菜单项的名称
How to change the name of an existing menuitem
我想在 Sales/Sales/Opportunities
(CRM) 中更改菜单 'Opportunities' 的名称。
我试过这段代码:
<menuitem
id="crm.menu_crm_opportunities"
parent="base.menu_sales"
name="Affaire"
sequence="4"
groups="base.group_sale_salesman,base.group_sale_manager"/>
但是没用;我会怎么做?
尝试改变这个
**<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
<record model="ir.ui.menu" id="crm.menu_crm_opportunities">
<field name='name'>Affaire</field>
</record>
请使用以上代码更改现有菜单项名称。
我想在 Sales/Sales/Opportunities
(CRM) 中更改菜单 'Opportunities' 的名称。
我试过这段代码:
<menuitem
id="crm.menu_crm_opportunities"
parent="base.menu_sales"
name="Affaire"
sequence="4"
groups="base.group_sale_salesman,base.group_sale_manager"/>
但是没用;我会怎么做?
尝试改变这个
**<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
<record model="ir.ui.menu" id="crm.menu_crm_opportunities">
<field name='name'>Affaire</field>
</record>
请使用以上代码更改现有菜单项名称。