Odoo Help

Welcome!

This community 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.

0

How i can add script js in one web page ?

By
cristian
on 7/9/15, 6:05 PM 645 views

Hi,

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">

         ...

    </xpath>

but that do not need.

please help me

0
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. -->

    </t>

</template>

0
cristian
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 7/9/15, 6:05 PM
Seen: 645 times
Last updated: 10/6/15, 8:23 AM