How do I set favicon in Odoo / OpenERP? -


how set favicon web/e-commerce frontend of odoo 8?

ideally without changing odoo core files, i.e. not want overwrite addons/web/static/src/img/favicon.ico.

(this odoo 8, august 2014. it's easier change favicon in future versions.)

you have override web module own module. can add line like

'data': [ 'views/website_templates.xml' ] 

in __openerp__.py.

put favicon @ static/src/img/favicon.ico , add template 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> 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -