In Odoo, we can build our own custom website according to our requirements. Sometimes based on the requirements we may need to add some more features other than the default options. With the help of website builder feature, we can easily add the snippets by drag and drop option. In this blog, we are going to discuss how to create custom snippets in Odoo.
To create a custom snippet, create a new custom module and add the website module as a dependency in manifest.py file.
Then create a new XML file named snippets.xml inside views folder and add it to the manifest.py file.
'depends': ['website'],
'data': ['views/snippets.xml']
In this XML file, we will add all the code to create the snippet and to make it visible in the editor.
<template id="s_social_media" name="Social Media">
<section class="s_references bg-gray-lighter">
<div class="container">
<p class="montserrat">Follow us on</p>
<div class="row">
<div class="wrapper">
<a target="_blank"
href="https://wa.me/966570905656?text=Hi,%0AWe%20are%20looking%20for%20IT%20services.%20%0AKindly%20revert%20back%20to%20us.%0A%0A%0AThanks.%20">
<i class="fa fa-3x fa-whatsapp"></i>
</a>
<a target="_blank" href="https://www.facebook.com/iWesabe">
<i class="fa fa-3x fa-facebook-f"></i>
</a>
<a target="_blank" href="https://twitter.com/iWesabe">
<i class="fa fa-3x fa-twitter"></i>
</a>
<a target="_blank" href="https://www.linkedin.com/company/iwesabe">
<i class="fa fa-3x fa-linkedin"></i>
</a>
<a target="_blank" href="https://instagram.com/iwesabeerp">
<i class="fa fa-3x fa-instagram"></i>
</a>
<a target="_blank" href="https://iwesabe.business.site/">
<i class="fa fa-3x fa-google"></i>
</a>
<a target="_blank" href="https://www.youtube.com/iWesabe">
<i class="fa fa-3x fa-youtube-play"></i>
</a>
</div>
</div>
</div>
</section>
</template>
In the above code, we designed the snippet by creating a new template with a unique template id and name. Then we added the HTML and CSS code.
To add style for the snippet, create a new file named style.css. Then inherit the web.assets_frontend record and provide the path of CSS file.
<template id="assets_backend" name="snippet assets" inherit_id="web.assets_frontend">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/css" href="/custom_module_name/static/src/css/style.css"/>
</xpath>
</template>
After this, we need to add snippet preview to the editor so we can quickly find it from the editor. It can be done by inheriting website.snippets record.
<template id="social_media_snippet" inherit_id="website.snippets" name="Place into snippet bar">
<xpath expr="//div[@id='snippet_structure']" position="inside">
<div class="o_panel_body">
<t t-snippet="iwesabe_custom_snippet.s_social_media"
t-thumbnail="/custom_module_name/static/src/img/social_media.png"/>
</div>
</xpath>
</template>
In this code, we first inherit the default website.snippets record. It holds the link to all available snippets. Then xpath the snippet_structure to preview our custom snippet in the editor. In this xpath element, we using the t-snippet element to call our snippet template and provide the path of snippet icon in t-thumbnail to add the icon for the snippet.
Then install the custom module and go to the website menu and click the go to the website button. In the website view click the edit button and we can see the created snippets.
Here we can see the snippets bar and icon of our custom snippet.
Then drag and drop the snippet and click save button.
These are the steps to create a snippet in Odoo.
<a href="https://www.youube.me">온라인바카라</a> <br> <a href="https://www.youube.me">카지노사이트</a> <a href="https://www.youube.me">바카라사이트</a> <a href="https://www.youube.me">인터넷카지노</a> <a href="https://www.youube.me">바카라게임사이트</a> <a href="https://www.youube.me">퀸즈슬롯</a> <a href="https://www.youube.me">카지노주소</a> <a href="https://www.youube.me">비바카지노</a> <a href="https://www.youube.me">카지노추천</a> <a href="https://www.youube.me">카지노게임</a> <a href="https://www.youube.me">온라인카지노사이트</a> <a href="https://www.youube.me">카지노</a> <a href="https://www.youube.me">바카라</a> <a href="https://www.youube.me">온라인카지노</a> <a href="https://www.youube.me">카지노게임사이트</a> <a href="https://www.youube.me/sandscasinoaddress">카지노검증사이트</a> <a href="https://www.youube.me/royalcasinoseries">로얄카지노계열</a> <a href="https://www.youube.me/slotmachinesite">슬롯머신사이트</a> <a href="https://www.youube.me/maxcasino">맥스카지노</a> <a href="https://www.youube.me/baccaratgamesite">바카라게임사이트</a> <a href="https://www.youube.me/casimbakorea-casino">카심바코리아 카지노</a> <a href="https://www.youube.me/mobilecasino">모바일카지노</a> <a href="https://www.youube.me/real-timebaccarat">실시간바카라</a> <a href="https://www.youube.me/livecasino">라이브카지노</a> <a href="https://www.youube.me/onlineslots">온라인슬롯</a> <a href="https://www.youube.me/sandscasinoaddress">바카라 이기는방법</a> <a href="https://www.youube.me/safecasinosite">안전카지노사이트</a> <a href="https://www.youube.me/ourcasinosite">우리카지노사이트</a> <a href="https://www.youube.me/sandscasinoaddress">샌즈카지노주소</a> <a href="https://www.youube.me/baccarat-rulesofthegame">바카라 게임규칙</a> <a href="https://www.youube.me/baccarat-howtoplay">바카라 게임방법</a> <a href="https://www.youube.me" target="_blank">온라인바카라</a> <a href="https://www.youube.me" target="_blank">카지노사이트</a> <a href="https://youube.me" target="_blank">바카라사이트</a> <a href="https://youube.me" target="_blank">인터넷카지노</a> <a href="https://youube.me" target="_blank">바카라게임사이트</a> <a href="https://youube.me" target="_blank">퀸즈슬롯</a> <a href="https://youube.me" target="_blank">카지노주소</a> <a href="https://youube.me" target="_blank">비바카지노</a> <a href="https://youube.me" target="_blank">카지노추천</a> <a href="https://youube.me" target="_blank">카지노게임</a> <a href="https://youube.me" target="_blank">온라인카지노사이트</a> <a href="https://youube.me" target="_blank">카지노</a> <a href="https://youube.me" target="_blank">바카라</a> <a href="https://youube.me" target="_blank">온라인카지노</a> <a href="https://youube.me" target="_blank">카지노게임사이트</a> <a href="https://youube.me" target="_blank">카지노검증사이트</a> <a href="https://youube.me" target="_blank">로얄카지노계열</a> <a href="https://youube.me" target="_blank">슬롯머신사이트</a> <a href="https://youube.me" target="_blank">맥스카지노</a> <a href="https://youube.me" target="_blank">바카라게임사이트</a> <a href="https://youube.me" target="_blank">카심바코리아 카지노</a> <a href="https://youube.me" target="_blank">모바일카지노</a> <a href="https://www.youube.me" target="_blank">실시간바카라</a> <a href="https://www.youube.me" target="_blank">라이브카지노</a> <a href="https://youube.me" target="_blank">온라인슬롯</a> <a href="https://www.youube.me" target="_blank">바카라 이기는방법</a> <a href="https://www.youube.me" target="_blank">안전카지노사이트</a> <a href="https://youube.me" target="_blank">우리카지노사이트</a> <a href="https://www.youube.me" target="_blank">샌즈카지노주소</a> <a href="https://youube.me" target="_blank">바카라 게임규칙</a> <a href="https://www.youube.me" target="_blank">바카라 게임방법</a> </br> https://gamja888.com/ https://instagrme.com/ https://youubbe.me/ https://Instagrm.me/ https://Instagrme.net/ https://internetgame.me/ https://instagrme.live/ https://naverom.me https://facebokom.me
10 October, 2022
https://www.youube.me/ - 99M카지노
<a href="https://www.youubbe.me">카지노사이트</a> <br> <a href="https://www.youubbe.me">슬롯사이트</a> <a href="https://www.youubbe.me">온라인카지노</a> <a href="https://www.youubbe.me">카지노주소</a> <a href="https://www.youubbe.me">카지노검증사이트</a> <a href="https://www.youubbe.me">안전한카지노사이트</a> <a href="https://www.youubbe.me">슬롯카지노</a> <a href="https://www.youubbe.me">바카라게임</a> <a href="https://www.youubbe.me">카지노추천</a> <a href="https://www.youubbe.me">비바카지노</a> <a href="https://www.youubbe.me">퀸즈슬롯</a> <a href="https://www.youubbe.me">카지노</a> <a href="https://www.youubbe.me">바카라</a> <a href="https://www.youubbe.me">안전한 바카라사이트</a> <a href="https://www.youubbe.me">온라인슬롯</a> <a href="https://www.youubbe.me/casinosite">카지노사이트</a> <a href="https://www.youubbe.me/baccarat">바카라</a> <a href="https://www.youubbe.me/baccaratsite">바카라사이트</a> <a href="https://www.youubbe.me/pharaoh-casino">파라오카지노</a> <a href="https://www.youubbe.me/제왕카지노">제왕카지노</a> <a href="https://www.youubbe.me/mgm카지노">mgm카지노</a> <a href="https://www.youubbe.me/theking-casino">더킹카지노</a> <a href="https://www.youubbe.me/coin-casino">코인카지노</a> <a href="https://www.youubbe.me/solaire-casino">솔레어카지노</a> <a href="https://www.youubbe.me/casino-game">카지노게임</a> <a href="https://www.youubbe.me/micro-gaming">마이크로게이밍</a> <a href="https://www.youubbe.me/asia-gaming">아시아게이밍</a> <a href="https://www.youubbe.me/taisan-gaming">타이산게이밍</a> <a href="https://www.youubbe.me/oriental-game">오리엔탈게임</a> <a href="https://www.youubbe.me/evolution-game">에볼루션게임</a> <a href="https://www.youubbe.me/dragon-tiger">드래곤타이거</a> <a href="https://www.youubbe.me/dream-gaming">드림게이밍</a> <a href="https://www.youubbe.me/vivo-gaming">비보게이밍</a> <a href="https://www.youubbe.me" target="_blank">카지노사이트</a> <a href="https://www.youubbe.me" target="_blank">슬롯사이트</a> <a href="https://www.youubbe.me" target="_blank">온라인카지노</a> <a href="https://www.youubbe.me" target="_blank">카지노주소</a> <a href="https://www.youubbe.me" target="_blank">카지노검증사이트</a> <a href="https://www.youubbe.me" target="_blank">안전한카지노사이트</a> <a href="https://www.youubbe.me" target="_blank">슬롯카지노</a> <a href="https://www.youubbe.me" target="_blank">바카라게임</a> <a href="https://www.youubbe.me" target="_blank">카지노추천</a> <a href="https://www.youubbe.me" target="_blank">비바카지노</a> <a href="https://www.youubbe.me" target="_blank">퀸즈슬롯</a> <a href="https://www.youubbe.me" target="_blank">카지노</a> <a href="https://www.youubbe.me" target="_blank">바카라</a> <a href="https://www.youubbe.me" target="_blank">안전한 바카라사이트</a> <a href="https://www.youubbe.me" target="_blank">온라인슬롯</a> <a href="https://youubbe.me" target="_blank">카지노사이트</a> <a href="https://www.youubbe.me" target="_blank">바카라</a> <a href="https://www.youubbe.me" target="_blank">바카라사이트</a> <a href="https://youubbe.me" target="_blank">파라오카지노</a> <a href="https://www.youubbe.me" target="_blank">제왕카지노</a> <a href="https://youubbe.me" target="_blank">mgm카지노</a> <a href="https://www.youubbe.me" target="_blank">더킹카지노</a> <a href="https://www.youubbe.me" target="_blank">코인카지노</a> <a href="https://youubbe.me" target="_blank">솔레어카지노</a> <a href="https://www.youubbe.me" target="_blank">카지노게임</a> <a href="https://youubbe.me" target="_blank">마이크로게이밍</a> <a href="https://www.youubbe.me" target="_blank">아시아게이밍</a> <a href="https://www.youubbe.me" target="_blank">타이산게이밍</a> <a href="https://www.youubbe.me" target="_blank">오리엔탈게임</a> <a href="https://youubbe.me" target="_blank">에볼루션게임</a> <a href="https://www.youubbe.me" target="_blank">드래곤타이거</a> <a href="https://www.youubbe.me" target="_blank">드림게이밍</a> <a href="https://www.youubbe.me" target="_blank">비보게이밍</a> </br> https://youube.me/ https://gamja888.com/ https://instagrme.com/ https://Instagrm.me/ https://Instagrme.net/ https://internetgame.me/ https://instagrme.live/ https://naverom.me https://facebokom.me
10 October, 2022
https://youubbe.me/ - 파라오카지노
<a href="https://www.instagrme.com">바카라사이트</a> <br> <a href="https://www.instagrme.com">온라인바카라</a> <a href="https://www.instagrme.com">실시간바카라</a> <a href="https://www.instagrme.com">퀸즈슬롯</a> <a href="https://www.instagrme.com">바카라게임</a> <a href="https://www.instagrme.com">카지노주소</a> <a href="https://www.instagrme.com">온라인카지노</a> <a href="https://www.instagrme.com">온라인카지노사이트</a> <a href="https://www.instagrme.com">바카라게임사이트</a> <a href="https://www.instagrme.com">실시간바카라사이트</a> <a href="https://www.instagrme.com">바카라</a> <a href="https://www.instagrme.com">카지노</a> <a href="https://www.instagrme.com/woori-casino">우리카지노</a> <a href="https://www.instagrme.com/theking-casino">더킹카지노</a> <a href="https://www.instagrme.com/sands-casino">샌즈카지노</a> <a href="https://www.instagrme.com/yes-casino">예스카지노</a> <a href="https://www.instagrme.com/coin-casino">코인카지노</a> <a href="https://www.instagrme.com/thenine-casino">더나인카지노</a> <a href="https://www.instagrme.com/thezone-casino">더존카지노</a> <a href="https://www.instagrme.com/casino-site">카지노사이트</a> <a href="https://www.instagrme.com/gold-casino">골드카지노</a> <a href="https://www.instagrme.com/evolution-casino">에볼루션카지노</a> <a href="https://www.instagrme.com/casino-slotgames">카지노 슬롯게임</a> <a href="https://www.instagrme.com/baccarat">baccarat</a> <a href="https://www.instagrme.com/texas-holdem-poker">텍사스 홀덤 포카</a> <a href="https://www.instagrme.com/blackjack">blackjack</a> <a href="https://www.instagrme.com" target="_blank">바카라사이트</a> <a href="https://www.instagrme.com" target="_blank">온라인바카라</a> <a href="https://www.instagrme.com" target="_blank">실시간바카라</a> <a href="https://www.instagrme.com" target="_blank">퀸즈슬롯</a> <a href="https://www.instagrme.com" target="_blank">바카라게임</a> <a href="https://www.instagrme.com" target="_blank">카지노주소</a> <a href="https://www.instagrme.com" target="_blank">온라인카지노</a> <a href="https://www.instagrme.com" target="_blank">온라인카지노사이트</a> <a href="https://www.instagrme.com" target="_blank">바카라게임사이트</a> <a href="https://www.instagrme.com" target="_blank">실시간바카라사이트</a> <a href="https://www.instagrme.com" target="_blank">바카라</a> <a href="https://www.instagrme.com" target="_blank">카지노</a> <a href="https://instagrme.com" target="_blank">우리카지노</a> <a href="https://www.instagrme.com" target="_blank">더킹카지노</a> <a href="https://www.instagrme.com" target="_blank">샌즈카지노</a> <a href="https://instagrme.com" target="_blank">예스카지노</a> <a href="https://www.instagrme.com" target="_blank">코인카지노</a> <a href="https://instagrme.com" target="_blank">더나인카지노</a> <a href="https://www.instagrme.com" target="_blank">더존카지노</a> <a href="https://www.instagrme.com" target="_blank">카지노사이트</a> <a href="https://instagrme.com" target="_blank">골드카지노</a> <a href="https://www.instagrme.com" target="_blank">에볼루션카지노</a> <a href="https://instagrme.com" target="_blank">카지노 슬롯게임</a> <a href="https://www.instagrme.com" target="_blank">baccarat</a> <a href="https://www.instagrme.com" target="_blank">텍사스 홀덤 포카</a> <a href="https://www.instagrme.com" target="_blank">blackjack</a> </br> https://youube.me/ https://gamja888.com/ https://youubbe.me/ https://Instagrm.me/ https://Instagrme.net/ https://internetgame.me/ https://instagrme.live/ https://naverom.me https://facebokom.me
10 October, 2022
https://instagrme.com/ - 비바카지노 쿠폰
<a href="https://www.gamja888.com">바카라사이트</a> <br> <a href="https://www.gamja888.com">카지노사이트</a> <a href="https://www.gamja888.com">카지노게임사이트</a> <a href="https://www.gamja888.com">온라인카지노</a> <a href="https://www.gamja888.com">퀸즈슬롯</a> <a href="https://www.gamja888.com">맥스카지노</a> <a href="https://www.gamja888.com">비바카지노</a> <a href="https://www.gamja888.com">카지노주소</a> <a href="https://www.gamja888.com">바카라추천</a> <a href="https://www.gamja888.com">온라인바카라게임</a> <a href="https://www.gamja888.com">안전한 바카라사이트</a> <a href="https://www.gamja888.com">바카라</a> <a href="https://www.gamja888.com">카지노</a> <a href="https://www.gamja888.com">퀸즈슬롯 카지노</a> <a href="https://www.gamja888.com">바카라게임사이트</a> <a href="https://www.gamja888.com/onlinebaccarat">온라인바카라</a> <a href="https://www.gamja888.com/millionclubcasino">밀리언클럽카지노</a> <a href="https://www.gamja888.com/safecasinosite">안전카지노사이트</a> <a href="https://www.gamja888.com/baccaratsiterecommendation">바카라사이트추천</a> <a href="https://www.gamja888.com/ourcasino">우리카지노계열</a> <a href="https://www.gamja888.com/slotmachine777">슬롯머신777</a> <a href="https://www.gamja888.com/royalcasinosite">로얄카지노사이트</a> <a href="https://www.gamja888.com/crazyslot">크레이지슬롯</a> <a href="https://www.gamja888.com/onlineblackjack">온라인블랙잭</a> <a href="https://www.gamja888.com/internetroulette">인터넷룰렛</a> <a href="https://www.gamja888.com/casinoverificationsite">카지노검증사이트</a> <a href="https://www.gamja888.com/safebaccaratsite">안전바카라사이트</a> <a href="https://www.gamja888.com/mobilebaccarat">모바일바카라</a> <a href="https://www.gamja888.com/howtowin-baccarat">바카라 필승법</a> <a href="https://www.gamja888.com/meritcasino">메리트카지노</a> <a href="https://www.gamja888.com/baccarat-howto">바카라 노하우</a> <a href="https://gamja888.com" target="_blank">바카라사이트</a> <a href="https://www.gamja888.com" target="_blank">온라인카지노</a> <a href="https://gamja888.com" target="_blank">카지노사이트</a> <a href="https://gamja888.com" target="_blank">카지노게임사이트</a> <a href="https://gamja888.com" target="_blank">퀸즈슬롯</a> <a href="https://gamja888.com" target="_blank">맥스카지노</a> <a href="https://gamja888.com" target="_blank">비바카지노</a> <a href="https://gamja888.com" target="_blank">카지노주소</a> <a href="https://gamja888.com" target="_blank">바카라추천</a> <a href="https://gamja888.com" target="_blank">온라인바카라게임</a> <a href="https://gamja888.com" target="_blank">안전한 바카라사이트</a> <a href="https://gamja888.com" target="_blank">바카라</a> <a href="https://gamja888.com" target="_blank">카지노</a> <a href="https://gamja888.com" target="_blank">퀸즈슬롯 카지노</a> <a href="https://gamja888.com" target="_blank">바카라게임사이트</a> <a href="https://gamja888.com" target="_blank">온라인바카라</a> <a href="https://gamja888.com" target="_blank">밀리언클럽카지노</a> <a href="https://gamja888.com" target="_blank">안전카지노사이트</a> <a href="https://gamja888.com" target="_blank">바카라사이트추천</a> <a href="https://gamja888.com" target="_blank">우리카지노계열</a> <a href="https://gamja888.com" target="_blank">슬롯머신777</a> <a href="https://gamja888.com" target="_blank">로얄카지노사이트</a> <a href="https://www.gamja888.com" target="_blank">크레이지슬롯</a> <a href="https://www.gamja888.com" target="_blank">온라인블랙잭</a> <a href="https://gamja888.com" target="_blank">인터넷룰렛</a> <a href="https://www.gamja888.com" target="_blank">카지노검증사이트</a> <a href="https://www.gamja888.com" target="_blank">안전바카라사이트</a> <a href="https://gamja888.com" target="_blank">모바일바카라</a> <a href="https://www.gamja888.com" target="_blank">바카라 필승법</a> <a href="https://gamja888.com" target="_blank">메리트카지노</a> <a href="https://www.gamja888.com" target="_blank">바카라 노하우</a> </br> https://youube.me/ https://instagrme.com/ https://youubbe.me/ https://Instagrm.me/ https://Instagrme.net/ https://internetgame.me/ https://instagrme.live/ https://naverom.me https://facebokom.me
10 October, 2022
https://www.gamja888.com/ - 온라인바카라