openerp - odoo_website variable not defined in odoo 10 while adding javascript in custom snippet -


i going through odoo 10 theme tutorial following website https://www.odoo.com/documentation/10.0/howtos/themes.html#javascript-options

i did tutorial said getting error in following code:

(function () {     'use strict';      var website = odoo.website;     website.odoo_website = {};//    odoo_website veriable undefined;  website.snippet.options.snippet_testimonial_options = website.snippet.option.extend({     on_focus: function () {         alert("on focus!");     } }) })(); 

here screen shot of console: error screen shot odoo 10 odoo_website

try

(function() {     'use strict';     var website = openerp.website;     website.openerp_website = {}; })(); 

Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -