[FIX] mail: when generating pure email mass mailing
authorThibault Delavallée <tde@openerp.com>
Tue, 26 Nov 2013 11:09:42 +0000 (12:09 +0100)
committerThibault Delavallée <tde@openerp.com>
Tue, 26 Nov 2013 11:09:42 +0000 (12:09 +0100)
commitcf214ed7244207f1fd5d377ab69d85a6441ff665
treea8e96bc11567b6e65550f0028dd7c3d79174abcf
parent6f322004cc4c5ea886231fb18c17cc9310802f8a
[FIX] mail: when generating pure email mass mailing
we have to process attachments as well as attachment_ids in the values generated
by the composer and the optional template.
As this behavior is the same as the one already implemented for message_post, this
feature has been moved into its dedicated method to be called by message_post
or before calling mail_mail.create().
This also allows to have attachments in pure email mass mailing that are attached
to mail.message, not to mail.compose.message model. When unlinking those emails,
the attachments will be also removed, and not lost in the database anymore.

bzr revid: tde@openerp.com-20131126110942-h8p0d9sbjtk0hwlu
addons/mail/mail_thread.py
addons/mail/wizard/mail_compose_message.py