在菜单Odoo 10中重命名博客名称

问题描述 投票:0回答:1

如何在Odoo 10上使用此代码将菜单中的博客名称重命名为新闻名称?

<xpath expr="path_of_field/page/group/whatever" position="attributes">
     <attribute name="string">here is value</attribute>
</xpath>
odoo odoo-10
1个回答
0
投票

尝试在模块中的XML数据文件中覆盖namewebsite_blog.menu_news data record值:

<record id="website_blog.menu_news" model="website.menu">
    <field name="name">News</field>
</record>

不要忘记将XML文件添加到模块的__manifest__.py中的data文件列表中。

© www.soinside.com 2019 - 2024. All rights reserved.