summaryrefslogtreecommitdiff
path: root/addons/website_rating/static/src/xml
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2019-02-14 09:17:23 +0000
committerjem-odoo <jem@openerp.com>2019-02-14 15:27:35 +0000
commitd233ac239dbcf7fcaa0e0e6735f45146b41be5d6 (patch)
tree69c0e918696a83455d8a2b4793edc27fe59ec09a /addons/website_rating/static/src/xml
parent8ad65abd004361c7b763b6f2ce9af2187f0050ad (diff)
[FIX] website_rating: default value is not 'false' in composer
When website_rating is installed, all frontend chatter will have the string 'false' by default in the composer. This commit fixes that, restoring the placeholder closes odoo/odoo#31097
Diffstat (limited to 'addons/website_rating/static/src/xml')
-rw-r--r--addons/website_rating/static/src/xml/portal_chatter.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_rating/static/src/xml/portal_chatter.xml b/addons/website_rating/static/src/xml/portal_chatter.xml
index bb90721133e..78b1b64baae 100644
--- a/addons/website_rating/static/src/xml/portal_chatter.xml
+++ b/addons/website_rating/static/src/xml/portal_chatter.xml
@@ -5,7 +5,7 @@
Inherited templates from portal to custom chatter with rating
-->
<t t-extend="portal.Composer">
- <t t-jquery="textarea" t-operation="inner"><t t-esc="_.str.trim(widget.options['default_message'])"/></t><!-- need to be one line to avoid \t in textarea -->
+ <t t-jquery="textarea" t-operation="inner"><t t-esc="widget.options['default_message'] ? _.str.trim(widget.options['default_message']) : ''"/></t><!-- need to be one line to avoid \t in textarea -->
<t t-jquery="form" t-operation="attributes">
<attribute name="t-attf-action">#{widget.options['force_submit_url'] ? widget.options['force_submit_url'] : '/mail/chatter_post'}</attribute>
</t>