From b83128ac0949986f329770518ad4f6f89a97c55a Mon Sep 17 00:00:00 2001 From: "tfr@openerp.com" <> Date: Fri, 20 Jan 2012 14:03:47 +0100 Subject: [PATCH] [FIX] fix res_id link when sending an email template bzr revid: tfr@openerp.com-20120120130347-fj4a8v3itlwjf2ai --- addons/mail/wizard/mail_compose_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index de4bcee4f76..1802230dfd4 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -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=int(active_id), subtype=mail.subtype, headers=headers, context=context) else: # normal mode - no mass-mailing