[MERGE] mail: fix res_id link when sending an email template

bzr revid: rco@openerp.com-20120126135547-995815mj21zw1jwn
This commit is contained in:
Raphael Collet 2012-01-26 14:55:47 +01:00
commit 41863070c8
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class mail_compose_message(osv.osv_memory):
# processed as soon as the mail scheduler runs.
mail_message.schedule_with_attach(cr, uid, email_from, to_email(email_to), subject, rendered_body,
model=mail.model, email_cc=to_email(email_cc), email_bcc=to_email(email_bcc), reply_to=reply_to,
attachments=attachment, references=references, res_id=int(mail.res_id),
attachments=attachment, references=references, res_id=active_id,
subtype=mail.subtype, headers=headers, context=context)
else:
# normal mode - no mass-mailing