[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
This commit is contained in:
jem-odoo
2019-02-14 15:27:35 +00:00
parent 8ad65abd00
commit d233ac239d
@@ -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>