From d65ad44e57ee55e2af159ce370a72ddc7014254b Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Fri, 18 Jan 2019 15:22:41 +0000 Subject: [PATCH] [FIX] website: restore customize dialog opening Following the new editor's merge at https://github.com/odoo/odoo/pull/29775, the customize theme dialog was not opening anymore. This was due because, somehow, the editor's merge changed the theme dialog code for no reason. closes odoo/odoo#30365 --- addons/website/static/src/js/widgets/theme.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/website/static/src/js/widgets/theme.js b/addons/website/static/src/js/widgets/theme.js index 2de299b55c0..93206e29949 100644 --- a/addons/website/static/src/js/widgets/theme.js +++ b/addons/website/static/src/js/widgets/theme.js @@ -5,7 +5,6 @@ var config = require('web.config'); var core = require('web.core'); var ColorpickerDialog = require('wysiwyg.widgets.ColorpickerDialog'); var Dialog = require('web.Dialog'); -var weContext = require('web_editor.context'); var widgets = require('wysiwyg.widgets'); var websiteNavbarData = require('website.navbar'); @@ -44,7 +43,7 @@ var ThemeCustomizeDialog = Dialog.extend({ templateDef = this._rpc({ model: 'ir.ui.view', method: 'read_template', - args: ['website.theme_customize', weContext.get()], + args: ['website.theme_customize'], }).then(function (data) { return core.qweb.add_template(data); }); @@ -286,7 +285,6 @@ var ThemeCustomizeDialog = Dialog.extend({ data[1], '#wrapwrap { background-image: url("' + src + '"); }', '//style', - weContext.get(), ], }); }).then(function () {