Odoo Help


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.


how we create custom slider in odoo

on 3/16/16, 8:51 AM 385 views


i create one app for snippet in odoo v9

all image will render properly but js function not load properly in odoo

i create one js function and how we load that js file snippet

On 3/16/16, 10:42 AM

create an xml file and add this into it :



<template id="assets_backend" name="my_module assets" inherit_id="web.assets_backend">

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

<script type="text/javascript" src="/my_module/path_to_file1.js"></script

<script type="text/javascript" src="/my_module/path_to_file2.js"></script>





Don't forget to add it to __openerp__.py file !


can you please specify that how we maintain order for js file

on 3/16/16, 11:49 PM

if we include more than one files so how we can manage order for js file

on 3/16/16, 11:50 PM

I edited my last answer for how to include multiple files

on 3/17/16, 4:14 AM

hi thanks for your valuable reply it really helpful for me but one issue is there when i load js do slider called first than the code so slider not loading properly only images are render can you please tell me how can i solve that issue

on 3/17/16, 7:40 AM

That is because your js code is executed before the images you want to select on your slider. You will need to implement a slider widget . You can find more about widgets in the official documentation.

on 3/17/16, 8:37 AM

thanks motez but i am new to odoo ,can you please provide any example for that so it really helpful for me

on 3/18/16, 1:06 AM

welcome to the community katrik :) as a start have a look at the pet sotre tutorial. you can find the default Odoo widgets in the web module. Also you can find a plenty of community web modules that you can refer to...

on 3/18/16, 4:19 AM

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

1 follower(s)


Asked: 3/16/16, 8:51 AM
Seen: 385 times
Last updated: 3/16/16, 10:42 AM