Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
base.ready().then(function () {
load_called_template();
if ($(".o_gallery:not(.oe_slideshow)").size()) {
// load gallery modal template
ajax.loadXML('/website/static/src/xml/website.gallery.xml', qweb);
}
});
willStart: function () {
var def;
if (!qweb.has_template(this.template)) {
// we need to manually load the templates when the rainbon_man is used in
// the frontend, for example, it may be displayed at the end of a tour.
def = ajax.loadXML("/web/static/src/xml/rainbow_man.xml", qweb);
}
return $.when(this._super.apply(this, arguments), def);
},
/**