Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
9334 Weergaven


<template id="csm_website_layout" inherit_id="website.layout" name="CSM Website layout"> 

<xpath expr="//head//link" position="replace"> 

<link rel="shortcut icon" href="/csm-website/static/src/img/website/csm_favicon.ico" type="image/x-icon"/>         

</xpath> 

</template>



This code is not working. It is showing an error that <xpath expr="//head//link"> cannot be located in parent view


Avatar
Annuleer
Beste antwoord

Hi, 

Please check this

https://youtu.be/mX8WSUnBOIU

Hope it helps,

Thanks

Avatar
Annuleer
Beste antwoord

go to OdooApp Store there is many Free of cost Addons that can change your favison icon 

App Name likely Debranding or odoo customization 

Avatar
Annuleer
Beste antwoord

Hi,

You have override web to change favicon add 

'data': [ 'views/website_templates.xml' ] in manifest file
then add favicon in static/src/img/favicon.ico, add new template in views/website_templates.xml
<template id="layout_id" inherit_id="website.layout" name="layout name" priority="17">
<xpath expr="//head//link" position="after">
        <link rel="shortcut icon" href="/custom_web/static/src/img/favicon.ico" type="image/x-icon"/>
    </xpath>
</template>
Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
11
apr. 25
65460
1
dec. 22
4024
2
jul. 22
23409
0
apr. 24
11226
2
apr. 25
4981