[FIX] survey: pass the blank string if name and email is not set

In some cases name and email are NULL in survey.user_input so it's
return False and can't change the case of the boolean value.

So here add the blank string if name and email is not set.

sentry-3951409506

closes odoo/odoo#115455

X-original-commit: 68b5ab4f2936a02fe8245b887bf402abd4fd2997
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
smna-odoo
2023-03-16 09:37:25 +01:00
parent 5fa77db2ea
commit 29dd2b9fdc
@@ -17,7 +17,7 @@
<p>This certificate is presented to
<br/>
<t t-set="certif_style" t-value="''"/>
<t t-set="certified_name" t-value="user_input.partner_id.name or user_input.email"/>
<t t-set="certified_name" t-value="user_input.partner_id.name or user_input.email or ''"/>
<t t-if="certified_name.isupper()">
<t t-set="certif_style" t-value="certif_style + 'font-family: certification-serif;'"/>
</t>
@@ -68,7 +68,7 @@
<div t-if="user_input.scoring_success">
<p>This certificate is presented to
<t t-set="certif_style" t-value="''"/>
<t t-set="certified_name" t-value="user_input.partner_id.name or user_input.email"/>
<t t-set="certified_name" t-value="user_input.partner_id.name or user_input.email or ''"/>
<t t-if="certified_name.isupper()">
<t t-set="certif_style" t-value="certif_style + 'font-family: certification-serif;'"/>
</t>