[IMP] mail_gateway: send mail with attachment

bzr revid: hmo@tinyerp.com-20100105090128-th02kwc1ecaebe9b
This commit is contained in:
Harry (Open ERP)
2010-01-05 14:31:28 +05:30
parent 577357d6a3
commit ce38f837b9
+2 -2
View File
@@ -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):