-
- Downloads
[IMP] mass_mailing: propagate UTM on replies
USE CASE
Send a mailing to some recipients. Set reply-to of this mailing to an alias
creating records on a model inheriting from utm.mixin. UTM informations on
mailing are not propagated to the newly-created records.
SPECIFICATIONS
When an user answers to a mail of a mailing with an alias creating records
on an UTM enabled model, propagate UTM from the mailing to the new record.
In order to set UTM informations during record creation, "message_new" has
been overridden in mass_mailing. That way it is automatically available on
all models inheriting from utm.mixin.
A test simulating this scenario has been added. It checks if UTMs info are
correctlwy set on the created record by comparing them to the mailing's UTM
info.
Task Id 2210334
closes odoo/odoo#48602
Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/mass_mailing/models/mail_thread.py 23 additions, 0 deletionsaddons/mass_mailing/models/mail_thread.py
- addons/test_mass_mailing/models/mailing_models.py 9 additions, 0 deletionsaddons/test_mass_mailing/models/mailing_models.py
- addons/test_mass_mailing/security/ir.model.access.csv 2 additions, 0 deletionsaddons/test_mass_mailing/security/ir.model.access.csv
- addons/test_mass_mailing/tests/test_mailing_internals.py 46 additions, 0 deletionsaddons/test_mass_mailing/tests/test_mailing_internals.py
Please register or sign in to comment