我需要将“Powered by Odoo”页脚中的“Powered”更改为“Made”,所以我的 Odoo(原 OpenERP)版本 8.0-aab3d9f 的页脚将是“Made by Odoo”
有任何想法吗??
您可以创建一个依赖于web模块的新模块,而不是直接在 odoo 的核心中进行更改(这是不受欢迎的)。然后,您可以从web 模块中的webclient_templates.xml扩展模板web.menu_secondary,如下所示:
-> _ _openerp__.py 文件:
{
'name': "My Module",
# for the full list
'category': 'Web',
# any module necessary for this one to work correctly
'depends': ['web'],
# always loaded
'data': ['templates.xml'],
'demo': [],
}
-> 模板.xml 文件:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="menu_secondary" inherit_id="web.menu_secondary">
<div class="oe_footer" position="replace">
<div class="oe_footer">
Made by <a href="http://www.odoo.com" target="_blank"><span>Odoo</span></a>
</div>
</div>
</template>
</data>
</openerp>
首先转到您的 Odoo 网络模块并打开以下文件。
addons => web => views => webclient_templates.xml
现在找到这个标签<div class="oe_footer">
并像这样编辑它
<div class="oe_footer">
Made by <a href="http://www.openerp.com" target="_blank"><span>Odoo</span></a>
</div>
保存并刷新浏览器。希望你得到你想要的。