diff options
| author | std-odoo <std@odoo.com> | 2020-04-17 07:37:45 +0000 |
|---|---|---|
| committer | Debauche Stéphane <std@odoo.com> | 2020-06-12 11:49:45 +0000 |
| commit | b16843230d9c62606550c061934f319fee23d3c5 (patch) | |
| tree | 2b7608860889186fffa902ae2cf9cbb466d4281f /addons/mass_mailing/data | |
| parent | 5227f956da1b64293f3e1301ff03b4efb28db80b (diff) | |
[IMP] mass_mailing: send a statistics email to the mailing responsible
Purpose
=======
Provide a follow-up/overview of the Mailing 24 hours after its been sent.
Specifications
==============
Send an email to the responsible of the mailing 24 hours the last email
of the mass mailing.
During the link trackers creation, extract the button label if exists
(so we can display them in the statistics email).
Technical remarks
=================
The statistics email is sent to the responsible of each mailing in the
CRON of mass mailing.
Task-2227411
closes odoo/odoo#49836
Related: odoo/upgrade#1094
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/mass_mailing/data')
| -rw-r--r-- | addons/mass_mailing/data/mailing_data_templates.xml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/addons/mass_mailing/data/mailing_data_templates.xml b/addons/mass_mailing/data/mailing_data_templates.xml new file mode 100644 index 00000000000..5f16120534e --- /dev/null +++ b/addons/mass_mailing/data/mailing_data_templates.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> +<data noupdate="1"> + <template id="mass_mailing.mass_mailing_kpi_link_trackers" name="Email Marketing: mailing link trackers statistic"> + <table t-if="link_trackers" cellspacing="0" cellpadding="0" align="center" border="0" bgcolor="#eeeeee" style="width:100%; font-family: Arial,Helvetica,Verdana,sans-serif;"> + <tr> + <td align="center" valign="top"> + <table bgcolor="#ffffff" cellspacing="0" cellpadding="0" width="650" align="center" border="0" style="border: 1px solid #eeeeee; border-bottom: none;border-top: none; width: 100%; max-width: 650px; padding:0 30px 30px 30px"> + <tr> + <td style="width: 100%;"> + <table cellspacing="0" cellpadding="0" border="0" width="580" align="center" style="width:100%; max-width:580px;"> + <tr> + <td align="left" style="border-bottom: 1px solid #eeeeee;"> + <span style="color:#282f33; font-size: 15px; font-weight: bold; line-height: 30px"> + <t t-esc="'Click Rate Report on %i Emails Sent' % object.sent"/> + </span> + </td> + </tr> + </table> + </td> + </tr> + <tr> + <td style="margin: 0; padding:0;"> + <table cellspacing="0" cellpadding="0" border="0" width="580" align="center" style="width:100%; max-width:580px;"> + <tr style="color: #875a7b; font-size: 16px; font-weight: 500; border-bottom: 1px solid #e7e7e7;"> + <td style="width: 70%;padding: 10px 0; text-align: left;">Label</td> + <td style="width: 30%;padding: 10px 0; text-align: right;">%Click (Total)</td> + </tr> + <tr t-foreach="link_trackers" t-as="link_tracker" style="color: #888888; font-size: 15px; font-weight: 300;"> + <td style="width: 70%;padding: 10px 0; text-align: left;"> + <a t-att-href="link_tracker.absolute_url" target="_blank" style="color: #56b3b5; text-decoration: none;" t-esc="link_tracker.label or link_tracker.url"/> + </td> + <td style="width: 30%;padding: 10px 0; text-align: right;"> + <t t-esc="int(link_tracker.count * 100 / object.sent) if object.sent else 0"/>% (<t t-esc="link_tracker.count"/>) + </td> + </tr> + </table> + </td> + </tr> + </table> + </td> + </tr> + </table> + </template> +</data> +</odoo> |
