From ce38f837b97466041065e9b9ade0caf604d20e6a Mon Sep 17 00:00:00 2001 From: "Harry (Open ERP)" Date: Tue, 5 Jan 2010 14:31:28 +0530 Subject: [PATCH] [IMP] mail_gateway: send mail with attachment bzr revid: hmo@tinyerp.com-20100105090128-th02kwc1ecaebe9b --- addons/mail_gateway/mail_gateway.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail_gateway/mail_gateway.py b/addons/mail_gateway/mail_gateway.py index 1dc8316e5d8..a2b406e4da9 100644 --- a/addons/mail_gateway/mail_gateway.py +++ b/addons/mail_gateway/mail_gateway.py @@ -298,9 +298,9 @@ class mail_gateway(osv.osv): msg_body = self.msg_body_get(msg) if len(emails)>1: msg_cc = emails[1:] - + msg_attachment = map(lambda x: (x[0], x[1]), msg_body['attachment'].items()) return tools.email_send(reply_to, msg_to, msg_subject , msg_body['body'], email_cc=msg_cc, - reply_to=reply_to, openobject_id=res_id, priority=priority) + reply_to=reply_to, attach=msg_attachment, openobject_id=res_id, priority=priority) def msg_partner(self, cr, uid, msg, res_id, res_model):