I want to override the website template to be able to use my own favicon on website in Odoo 9.
I have created a custom module website_favicon with the following structure:
__init__.py (empty)
__openerp__.py
views
- website_templates.xml
static
- src
- img
favicon.ico
In __openerp__.py I put {
'name': "Website Favicon",
'version': '1.0.0',
'author': 'Me',
'category': 'Custom',
'description': '''Website Favicon''',
'depends': ['website'],
'data': [
'views/website_templates.xml',
],
'installable': True
}
In website_templates.xml I put
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="website_favicon" inherit_id="website.layout" name="Website Favicon">
<xpath expr="//meta[@name='keywords']" position="after">
<link rel="shortcut icon" href="/website_favicon/static/src/img/favicon.ico" type="image/x-icon"/>
</xpath>
</template>
</data>
</openerp>
The module installed successfully and I see the <link.../> code being inserted in the page source, but I don't see the new favicon on my website. Could you advice?