Files
odoo_source/addons/mass_mailing/views/themes_templates.xml
T
std-odoo 13d1f3e012 [IMP] mass_mailing: allow to customize the mail preview
Purpose
=======
Allow to customize the preview text in mass mailing.

Specifications
==============
We do not generate the preview text anymore, instead we add
a new field to let the user choose want he want to put into
the preview. As the preview is added in the mail body, it
supports dynamic placeholders.

Rename "View in browser" into "View Online" because the text
will be displayed in the preview if the snippet is added at
the beginning of the email. And we want to make it shorter.

Remove the alt attribute of the image tag which are not part
of the "email content" in the mass mailing template.
So, we improve the email preview in the mail clients
(otherwise the mail client include the alt attribute into the
preview).

Task-2313872

closes odoo/odoo#55695

Related: odoo/upgrade#1584
Related: odoo/enterprise#12323
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-18 08:47:28 +00:00

36 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Theme "Basic" template -->
<template id="theme_basic_template">
<div class="o_mail_no_options">
<p><br/></p>
<p><br/></p>
<p>
<br/>
<a href="/unsubscribe_from_list">Unsubscribe</a>
</p>
</div>
</template>
<!-- Default Theme -->
<template id="theme_default_template">
<div class="o_mail_block_header_logo mb16" data-snippet="s_mail_block_header_logo">
<div class="o_mail_snippet_general">
<table align="center" cellspacing="0" cellpadding="0" border="0" class="o_mail_table_styles o_mail_h_padding">
<tr>
<td width="20%"/>
<td valign="center" width="60%" class="o_mail_logo_container text-center o_mail_v_padding">
<a t-att-href="(company_id.website) or '#'" style="text-decoration:none;">
<img border="0" src="/mass_mailing/static/src/img/theme_default/s_default_image_logo.png" style="height:auto;max-width:400px;"/>
</a>
</td>
<td width="20%" style="text-align:right"/>
</tr>
</table>
</div>
</div>
<t t-snippet-call="mass_mailing.s_mail_block_title_text" />
<t t-snippet-call="mass_mailing.s_mail_block_footer_social_left"/>
</template>
</odoo>