From 0dddbd25e0aabbe3045a66d3ee1624efc7cfbde7 Mon Sep 17 00:00:00 2001 From: abd-msyukyu-odoo Date: Fri, 13 May 2022 13:41:03 +0000 Subject: [PATCH] [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) --- .../knowledge/static/src/js/wysiwyg/knowledge_article_link.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/knowledge/static/src/js/wysiwyg/knowledge_article_link.js b/addons/knowledge/static/src/js/wysiwyg/knowledge_article_link.js index fbd31eab459..d8096fd222b 100644 --- a/addons/knowledge/static/src/js/wysiwyg/knowledge_article_link.js +++ b/addons/knowledge/static/src/js/wysiwyg/knowledge_article_link.js @@ -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