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!"); } }) })();
try
(function() { 'use strict'; var website = openerp.website; website.openerp_website = {}; })();
Comments
Post a Comment