Odoo Help


How to integrate Completly Bootstrap snippets with odoo website ?

Yassine TEIMI
on 6/25/15, 2:39 PM 2,292 views

I want to integrate a bootstrap snippet on my odoo website, but as you know, a snippet is a block composed from Html, css, and sometimes JS Code, that you can integrate into your Odoo website.

So I used the HTML editor to integrate the HTML Code on my odoo website 

How to also integrate to my odoo website the CSS and JS Code ? is there a way to add this on the default theme ?


Vaishal Patel
On 7/4/16, 6:27 AM

What I did to add a jquery plugin is in the assets.xml file I added :

<template id="myjq" inherit_id="website.assets_frontend" name="Myjq">

<xpath expr="." position="inside">

<script type="text/javascript" src="/theme_vish/static/src/js/jquery.cycle2.min.js" />

<script type="text/javascript" src="/theme_vish/static/src/js/slideshow.js" />

<script type="text/javascript" src="/theme_vish/static/src/js/backtotop.js" />



and for the css I did:

<template id="mystyle" name="My style" inherit_id="website.assets_frontend">

<xpath expr="link[last()]" position="after">

<link href="/theme_vish/static/less/style.less" rel="stylesheet" type="text/less"/>



Hopefully, this will help you.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 6/25/15, 2:39 PM
Seen: 2292 times
Last updated: 7/4/16, 11:32 AM