[FIX] website_slides: create new course traceback issue

This bug was generated because of the template was not initialized
at proper place, so put the xmlDependency at correct place.

task-2040460

closes odoo/odoo#35409

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Juhil Somaiya
2019-08-02 12:28:13 +00:00
parent 819056582b
commit 7a56b76539
@@ -12,6 +12,9 @@ var _t = core._t;
var ChannelCreateDialog = Dialog.extend({
template: 'website.slide.channel.create',
xmlDependencies: Dialog.prototype.xmlDependencies.concat(
['/website_slides/static/src/xml/website_slides_channel.xml']
),
/**
* @override
* @param {Object} parent
@@ -90,9 +93,6 @@ WebsiteNewMenu.include({
actions: _.extend({}, WebsiteNewMenu.prototype.actions || {}, {
new_slide_channel: '_createNewSlideChannel',
}),
xmlDependencies: WebsiteNewMenu.prototype.xmlDependencies.concat(
['/website_slides/static/src/xml/website_slides_channel.xml']
),
//--------------------------------------------------------------------------
// Actions