Odoo Help

0

How i can add script js in one web page ?

By
cristian
on 7/9/15, 6:05 PM 820 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

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.

Register

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)

Stats

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