From 992d262c992c82d6e2e9bdfdd781ac246be82a55 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Mon, 28 Jun 2010 15:51:17 +0200 Subject: [PATCH] [IMP] mail_gateway: typo bzr revid: odo@openerp.com-20100628135117-ag6ep1j4eet2ji8x --- 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 e4e964cac28..071d26a0c74 100644 --- a/addons/mail_gateway/mail_gateway.py +++ b/addons/mail_gateway/mail_gateway.py @@ -239,12 +239,12 @@ class mailgate_tool(osv.osv_memory): del msg['reply-to'] msg['reply-to'] = res.section.email_from - if not tools.misc._email_send(msg, openobject_id=res_id) and email_error: + if not tools.misc._email_send(msg, openobject_id=res.id) and email_error: subj = msg['subject'] del msg['subject'], msg['to'], msg['cc'], msg['bcc'] msg['subject'] = '[OpenERP-Forward-Failed] %s' % subj msg['to'] = email_error - tools.misc._email_send(msg, openobject_id=res_id) + tools.misc._email_send(msg, openobject_id=res.id) def process_email(self, cr, uid, model, message, attach=True, context=None): """This function Processes email and create record for given OpenERP model