From c0205b3431c1c22593115ac8a30e676e2d963769 Mon Sep 17 00:00:00 2001 From: Kevin Baptiste Date: Mon, 22 Nov 2021 14:14:27 +0000 Subject: [PATCH] [IMP] website_forum: adapt tours The enterprise module website_helpdesk_forum changes the demo data karma_answer value to 0 for the default Help forum thus breaks the tour. odoo/enterprise#19870 odoo/upgrade#2681 closes odoo/odoo#74353 Taskid: 2499623 Signed-off-by: Laurent Stukkens (ltu) --- addons/website_forum/static/src/js/tours/website_forum.js | 2 +- .../website_forum/static/tests/tours/website_forum_question.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website_forum/static/src/js/tours/website_forum.js b/addons/website_forum/static/src/js/tours/website_forum.js index 55f57457ae6..1db7a3633c5 100644 --- a/addons/website_forum/static/src/js/tours/website_forum.js +++ b/addons/website_forum/static/src/js/tours/website_forum.js @@ -60,7 +60,7 @@ odoo.define("website_forum.tour_forum", function (require) { trigger: ".modal-header button.close", auto: true, }, { - trigger: ".o_wforum_validate_toggler[data-karma=\"20\"]:first", + trigger: ".o_wforum_validate_toggler[data-karma]:first", content: _t("Click here to accept this answer."), position: "right", }]); diff --git a/addons/website_forum/static/tests/tours/website_forum_question.js b/addons/website_forum/static/tests/tours/website_forum_question.js index be292067db6..33b15ffc758 100644 --- a/addons/website_forum/static/tests/tours/website_forum_question.js +++ b/addons/website_forum/static/tests/tours/website_forum_question.js @@ -56,7 +56,7 @@ odoo.define('website_forum.tour_forum_question', function (require) { }, { content: "Click here to accept this answer.", extra_trigger: '#wrap:has(".o_wforum_validate_toggler")', - trigger: '.o_wforum_validate_toggler[data-karma="20"]:first', + trigger: '.o_wforum_validate_toggler[data-karma]:first', }, { content: "Congratulations! You just created and post your first question and answer.", trigger: '#wrap:has(".o_wforum_answer_correct")',