[FIX] knowledge: add dependencies to /article dialog

- What is broken:

The /article command of the editor when editing a page on `website` has a
traceback and the dialog does not open.

- The fix:

Add a xmlDependency to the KnowledgeArticleLinkModal so that the modal can be
used in website to select the desired article when using the /article command.

Task-2674460

closes odoo/odoo#91343

Signed-off-by: David Beguin (dbe) <dbe@odoo.com>
This commit is contained in:
abd-msyukyu-odoo
2022-05-13 18:11:06 +02:00
parent 9c1cf242c0
commit 0dddbd25e0
@@ -6,6 +6,9 @@ import { _t } from 'web.core';
const KnowledgeArticleLinkModal = Dialog.extend({
template: 'knowledge.wysiwyg_article_link_modal',
xmlDependencies: Dialog.prototype.xmlDependencies.concat(
['/knowledge/static/src/xml/knowledge_editor.xml']
),
/**
* @override
* @param {Widget} parent