summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/data
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-12-13 11:47:03 +0000
committerThibault Delavallée <tde@odoo.com>2019-01-17 10:33:07 +0000
commitf50fbc6d168f0d17fa1e932b4ecc968a92b02b65 (patch)
treed1e028340c4edea09cd5ca1e1a2743bfa23f3875 /addons/mass_mailing/data
parent2428ce871d3de2e115fdc50cddb587f6bd0fa242 (diff)
[IMP] mass_mailing: differentiate mailing name from emails subject
Purpose of this task is to allow marketing people to differentiate the mailing name (internal reference) from the subject used in the mailing emails. Mailing name is actually the UTM source name as mass mailing inherits from it. Being able to edit it independently from the subject allows to better categorize / filter mailings without sending technical terms to customers. Marketing users could also change and tweak mailing subject without disorganizing the pipe and changing the URM source name. Demo data are updated accordingly to have both subject and mailing names. This commit is linked to task ID 1917602 and PR #29514.
Diffstat (limited to 'addons/mass_mailing/data')
-rw-r--r--addons/mass_mailing/data/mass_mailing_demo.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/mass_mailing/data/mass_mailing_demo.xml b/addons/mass_mailing/data/mass_mailing_demo.xml
index 666d8050cac..b8e403a1a6c 100644
--- a/addons/mass_mailing/data/mass_mailing_demo.xml
+++ b/addons/mass_mailing/data/mass_mailing_demo.xml
@@ -57,7 +57,7 @@
<field name="color" eval="1"/>
</record>
<record id="utm_source_0" model="utm.source">
- <field name="name">Newsleter</field>
+ <field name="name">Newsletter 1</field>
</record>
<record id="mass_mail_campaign_1" model="mail.mass_mailing.campaign">
<field name="name">Newsletter</field>
@@ -70,7 +70,8 @@
</record>
<record id="mass_mail_1" model="mail.mass_mailing">
- <field name="name">First Newsletter</field>
+ <field name="name">Newsletter 1</field>
+ <field name="subject" eval="'%s Newsletter' % (DateTime.today().strftime('%B'))"/>
<field name="state">done</field>
<field name="user_id" eval="ref('base.user_admin')"/>
<field name="email_from">info@yourcompany.example.com</field>