Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
9663 มุมมอง


<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


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi, 

Please check this

https://youtu.be/mX8WSUnBOIU

Hope it helps,

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

App Name likely Debranding or odoo customization 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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>
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to change Favicon? แก้ไขแล้ว
11
เม.ย. 25
66131
1
ธ.ค. 22
4335
How to change "Apps" module icon แก้ไขแล้ว
2
ก.ค. 22
24205
0
เม.ย. 24
11226
2
เม.ย. 25
5312