Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
implementing basic working owl.carousel.js in odoo results in "Uncaught TypeError: elem[type] is not a function"
I am trying to copy basic working "owl carousel" into odoo inside my "theme" and i am getting following error while pressing "next" and "previous" button in the "owl carousel":
" Uncaught TypeError: elem[type] is not a function"
My extended file (assets.xml) from "website.assets_frontend" looks as below:
<?xml version="1.0" encoding="utf-8" ?>
<template id="mystyle" name="My style" inherit_id="website.assets_frontend">
<xpath expr="link[last()]" position="after">
<link rel="stylesheet" type="text/css" href="/my_theme/static/less/owl.carousel.css"/>
<link href="/my_theme/static/less/custom.css" rel="stylesheet" type="text/less" />
And my "__openerp__.py" file looks like this:
'name': 'My theme Theme',
'description': 'This is my theme.',
'summary': 'This module provides feature for changing layout of theme.',
'depends': ['website', 'website_less'],
My locally tested working copy has Jquery version : 1.11.3. I wonder if it is the issue of jquery version and if that is the case how do i change the version of jquery inside "odoo" or is it the problem of some thing else. Also i am not sure of how to enable source map to identify which file has the error.
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
|Asked: 4/26/16, 8:33 AM|
|Seen: 1699 times|
|Last updated: 4/26/16, 8:35 AM|