[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
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user