Skip to content

Commit 39f619d

Browse files
committed
[FIX] mass_mailing: Allow reply_to mode 'email' for mailing contacts
Before this commit: When creating a mail template for a marketing campaign targeting mailing contact, the reply_to_mode would be set to 'thread', and the reply_to field would be be read-only. Since there is no way to target a mailing list from a marketing campaign (see the domain on marketing.campaign's model_id), and there is no default followers mailing.contact, email responses would be "lost". After this commit: The reply_to_mode is set to 'email', and the reply_to is set accordingly OPW-2803314 closes odoo#92968 Signed-off-by: Thibault Delavallee (tde) <[email protected]>
1 parent c008e8e commit 39f619d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/mass_mailing/models/mailing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def _compute_reply_to_mode(self):
239239
that mailing_model being mailing.list means contacting mailing.contact
240240
(see mailing_model_name versus mailing_model_real). """
241241
for mailing in self:
242-
if mailing.mailing_model_id.model in ['res.partner', 'mailing.list']:
242+
if mailing.mailing_model_id.model in ['res.partner', 'mailing.list', 'mailing.contact']:
243243
mailing.reply_to_mode = 'email'
244244
else:
245245
mailing.reply_to_mode = 'thread'

0 commit comments

Comments
 (0)