Odoo Help


How i can add script js in one web page ?

on 7/9/15, 6:05 PM 726 views


I want add a js in one web page not in all page of mi site.

in this way they are added in all website

<template id="website.tshop" name="Tshop" inherit_id="website.theme" priority="1">

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



but that do not need.

please help me

Vimesh Chaudhari
On 10/6/15, 5:25 AM

Hi Cristian,

Please use as below.

<template id="website.tshop" name="Tshop" inherit_id="website.theme" priority="1">

    <t t-set="head">

        <!-- Add your JS or CSS here for this particular page. -->



On 10/6/15, 8:23 AM

Thanks vimesh, I'll try

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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: 7/9/15, 6:05 PM
Seen: 726 times
Last updated: 10/6/15, 8:23 AM