summaryrefslogtreecommitdiff
path: root/addons/website_forum/views/website_forum.xml
diff options
context:
space:
mode:
authorPriyanka Kakadiya <pka@odoo.com>2019-09-27 10:42:34 +0000
committerJeremy Kersten <jke@odoo.com>2020-02-03 09:07:14 +0000
commit3ec0b4190376b4a5233abb93dfd0ca101746cc76 (patch)
tree9921e66068143aa65fdac20bae510b299b4688e8 /addons/website_forum/views/website_forum.xml
parent465b79829c9c6cb0f43891ce67190e5c6fc55fc6 (diff)
[IMP] website_forum: show share buttons only on validated question
Before this commit: when a user asks a question on a forum, share buttons are always showing even if question is validated or not and hence it will lead to 404 error. After this commit: when a user asks a question on a forum, share buttons will only show after a question is validated. task-2064874 closes odoo/odoo#37505 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website_forum/views/website_forum.xml')
-rw-r--r--addons/website_forum/views/website_forum.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml
index 353924d88e6..d2a77de4971 100644
--- a/addons/website_forum/views/website_forum.xml
+++ b/addons/website_forum/views/website_forum.xml
@@ -988,7 +988,8 @@
<article t-attf-class="question o_wforum_post row no-gutters #{can_bump and 'oe_js_bump'}"
data-type="question"
t-att-data-last-update="question.write_date"
- t-att-data-id="question.id">
+ t-att-data-id="question.id"
+ t-att-data-state="question.state">
<div t-if="question.state == 'active'" class="col-6 mb-3 col-md-auto pr-2 pr-md-3 pr-lg-4">
<t t-call="website_forum.vote">