تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
9272 أدوات العرض


<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>
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
11
أبريل 25
65356
1
ديسمبر 22
3977
2
يوليو 22
23287
0
أبريل 24
11226
2
أبريل 25
4920