summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-12-03 15:01:44 +0100
committerNicolas Lempereur <nle@odoo.com>2015-12-04 11:47:26 +0100
commit09411a4a508dcfd834ca5a26dbb154190b3a8fb4 (patch)
treed4295e46e008ac0d9f8c633092bf1bd661312ed0 /addons
parent81467d56003bc4e39431e8b3856abe7d89a6b7c5 (diff)
[FIX] website_forum: add summernote for non designer
In saas-6 the editor assets were always included, in 9.0 only for designer but if website_forum is installed it should also be included. fixes #9402 closes #9852 note: should not be forward ported after saas-8
Diffstat (limited to 'addons')
-rw-r--r--addons/website_forum/views/website_forum.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml
index e890cd774df..658c621a3c4 100644
--- a/addons/website_forum/views/website_forum.xml
+++ b/addons/website_forum/views/website_forum.xml
@@ -42,6 +42,12 @@
<!-- Page Index -->
<template id="header" name="Forum Index">
<t t-call="website.layout">
+ <t groups="base.group_website_designer" t-set="is_designer" t-value="True"/>
+ <t t-if="not is_designer">
+ <t t-set="head">
+ <t t-call-assets="web_editor.summernote"/>
+ </t>
+ </t>
<div t-if="is_public_user and not forum_welcome_message" class="forum_intro">
<div t-field="forum.welcome_message"/>
</div>