Odoo Help

0

0
3 Answers
0
Vimesh Chaudhari
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
SALVIN Nicolas
10/5/18, 12:49 PM

Hi,

I'm developing an Odoo 10 module and I need to use custom JS and update version of bootstrap and select2.

The solution above seems to not work with Odoo 10.

I tried with : 

<template id="assets_frontend" name="my_assets_frontend" inherit_id="website.assets_frontend">
        <xpath expr="." position="inside">

But the JS is laoded in the whole website and make conflicts.

Anybody have a solution ?
Thanks
0
cristian
10/6/15, 8:23 AM

Thanks vimesh, I'll try

Ask a Question
Writer
Keep Informed
2 follower(s)
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