[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:
parent
8f533d7b3d
commit
dc858b099e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue