Skip to content
Snippets Groups Projects
Commit c0c272c4 authored by Denis Baranov's avatar Denis Baranov Committed by Denis Ledoux
Browse files

[FIX] mass_mailing: add attachment in mass mailing test

When testing the mass mailing, with the 'Test Mailing'
button, the attachments were just not attached.

Closes #2981
parent b8f177dd
Branches
Tags
No related merge requests found
......@@ -33,6 +33,7 @@ class TestMassMailing(osv.TransientModel):
'body_html': '',
'notification': True,
'mailing_id': mailing.id,
'attachment_ids': [(4, attachment.id) for attachment in mailing.attachment_ids],
}
mail_mail_obj = Mail.browse(cr, uid, Mail.create(cr, uid, mail_values, context=context), context=context)
unsubscribe_url = Mail._get_unsubscribe_url(cr, uid, mail_mail_obj, test_mail, context=context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment