[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user