From 57f690c5b7d2bd925035c9cff0692cd3277ee0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20De=20Caluw=C3=A9?= Date: Wed, 9 Mar 2022 10:36:56 +0000 Subject: [PATCH] [MOV] website_forum: rename the file containing the public templates The website_forum_share_templates does not exclusively contain templates to the forum share widget since the addition of the toolbar template. Renaming the file to public_templates arguably makes more sense. task-2749467 closes odoo/odoo#85998 Signed-off-by: Quentin Smetz (qsm) --- addons/website_forum/static/src/js/website_forum.js | 4 ++-- addons/website_forum/static/src/js/website_forum.share.js | 2 +- ...website_forum_share_templates.xml => public_templates.xml} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename addons/website_forum/static/src/xml/{website_forum_share_templates.xml => public_templates.xml} (100%) diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js index a24f67a517a..d607ac8fc92 100644 --- a/addons/website_forum/static/src/js/website_forum.js +++ b/addons/website_forum/static/src/js/website_forum.js @@ -16,7 +16,7 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({ selector: '.website_forum', xmlDependencies: [ '/web_editor/static/src/xml/editor.xml', - '/website_forum/static/src/xml/website_forum_share_templates.xml', + '/website_forum/static/src/xml/public_templates.xml', ], events: { 'click .karma_required': '_onKarmaRequiredClick', @@ -558,7 +558,7 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({ publicWidget.registry.websiteForumSpam = publicWidget.Widget.extend({ selector: '.o_wforum_moderation_queue', - xmlDependencies: ['/website_forum/static/src/xml/website_forum_share_templates.xml'], + xmlDependencies: ['/website_forum/static/src/xml/public_templates.xml'], events: { 'click .o_wforum_select_all_spam': '_onSelectallSpamClick', 'click .o_wforum_mark_spam': 'async _onMarkSpamClick', diff --git a/addons/website_forum/static/src/js/website_forum.share.js b/addons/website_forum/static/src/js/website_forum.share.js index 68a2b8f3b72..c26809a7b35 100644 --- a/addons/website_forum/static/src/js/website_forum.share.js +++ b/addons/website_forum/static/src/js/website_forum.share.js @@ -10,7 +10,7 @@ var qweb = core.qweb; var ForumShare = publicWidget.registry.socialShare.extend({ selector: '', xmlDependencies: publicWidget.registry.socialShare.prototype.xmlDependencies - .concat(['/website_forum/static/src/xml/website_forum_share_templates.xml']), + .concat(['/website_forum/static/src/xml/public_templates.xml']), events: {}, /** diff --git a/addons/website_forum/static/src/xml/website_forum_share_templates.xml b/addons/website_forum/static/src/xml/public_templates.xml similarity index 100% rename from addons/website_forum/static/src/xml/website_forum_share_templates.xml rename to addons/website_forum/static/src/xml/public_templates.xml