コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
9302 ビュー


<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
4月 25
65388
1
12月 22
3985
2
7月 22
23314
0
4月 24
11226
2
4月 25
4952