tfr (Openerp) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-fix-email_template-res_id-tfr into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-fix-email_template-res_id-tfr/+merge/89432

Fix the res_id when sending mass email, use different res_id instead of always 
the first => fix history
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-fix-email_template-res_id-tfr/+merge/89432
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-fix-email_template-res_id-tfr.
=== modified file 'mail/wizard/mail_compose_message.py'
--- mail/wizard/mail_compose_message.py	2012-01-18 11:18:55 +0000
+++ mail/wizard/mail_compose_message.py	2012-01-20 13:16:42 +0000
@@ -228,7 +228,7 @@
                     # 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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to