您必须web使用自己的模块覆盖模块.你可以添加像这样的行
'data': [ 'views/website_templates.xml' ]
Run Code Online (Sandbox Code Playgroud)
在你的__openerp__.py.
将您的图标放在static/src/img/favicon.ico并添加模板views/website_templates:
<template id="MYSITE_layout" inherit_id="website.layout" name="MYSITE layout" priority="17">
<xpath expr="//head//link" position="after">
<link rel="shortcut icon" href="/MYSITE_web/static/src/img/favicon.ico" type="image/x-icon"/>
</xpath>
</template>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7323 次 |
| 最近记录: |