From 2cd9443b92952800b307efbae0b2cbcd9735e1e4 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Fri, 16 Nov 2012 12:35:51 +0100 Subject: [PATCH] [IMP] email_template: dont give mail.mail.create() an unneeded email_recipients field. bzr revid: vmt@openerp.com-20121116113551-le30lwfmignrxl0e --- addons/email_template/email_template.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py index 0ca92d8effa..a9bee623f66 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -345,6 +345,7 @@ class email_template(osv.osv): values = self.generate_email(cr, uid, template_id, res_id, context=context) assert 'email_from' in values, 'email_from is missing or empty after template rendering, send_mail() cannot proceed' attachments = values.pop('attachments') or {} + del values['email_recipients'] # TODO Properly use them. msg_id = mail_mail.create(cr, uid, values, context=context) # link attachments attachment_ids = []