[FIX] mail.compose.message: when sending emails using mass mailing without doing a message_post (aka, pure email mass-mailing), the body of the mail.compose.message was not copied into the body_html of the mail.mail.

bzr revid: tde@openerp.com-20130529095900-b1koa0000wh3bg0d
This commit is contained in:
Thibault Delavallée 2013-05-29 11:59:00 +02:00
parent 8f533d7b3d
commit dc858b099e
1 changed files with 1 additions and 0 deletions

View File

@ -270,6 +270,7 @@ class mail_compose_message(osv.TransientModel):
context.pop('default_partner_ids', None)
# post the message
if mass_mail_mode and not wizard.post:
post_values['body_html'] = post_values.get('body', '')
post_values['recipient_ids'] = [(4, id) for id in post_values.pop('partner_ids', [])]
self.pool.get('mail.mail').create(cr, uid, post_values, context=context)
else: