Before this patch, if you wrote newlines or more than a single whitespace character while sharing any document, in the note, those'd get collapsed in the final email. @Tecnativa TT31901 closes odoo/odoo#76624 X-original-commit: 6914371e95afff565fa6880f3ff9cf410b357750 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by: Jairo Llopis <jairo.llopis@tecnativa.com>
16 lines
642 B
XML
16 lines
642 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo><data noupdate="1">
|
|
|
|
<template id="portal_share_template">
|
|
<div>
|
|
<p>Dear <span t-esc="partner.name"/>,</p>
|
|
<p>You have been invited to access the following document:</p>
|
|
<br/>
|
|
<a t-attf-href="#{share_link}" style="background-color: #875A7B; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px; font-size: 12px;"><strong>Open </strong><strong t-esc="record.display_name"/></a><br/>
|
|
<br/>
|
|
<p t-if="note" style="white-space: pre-wrap;" t-esc="note"/>
|
|
</div>
|
|
</template>
|
|
|
|
</data></odoo>
|