From 1373c0b2d70e50ea06c649a5c947433508d798ba Mon Sep 17 00:00:00 2001 From: sebastien beau Date: Wed, 24 Aug 2011 17:10:26 +0200 Subject: [PATCH] [FIX] fix bug and port on v6 --- scheduler_error_mailer/ir_cron.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scheduler_error_mailer/ir_cron.py b/scheduler_error_mailer/ir_cron.py index dab5a8feb..510f11c8f 100644 --- a/scheduler_error_mailer/ir_cron.py +++ b/scheduler_error_mailer/ir_cron.py @@ -34,10 +34,10 @@ class ir_cron(osv.osv, netsvc.Agent): } def _handle_callback_exception(self, cr, uid, model, func, args, job_id, job_exception): - super(ir_cron, self)._handle_callback_exception(cr, uid, model, func, args, job_id, job_exception) - job = self.read(cr, uid, job_id, ['send_email?', 'message', 'email_TO', 'email_account', 'name']) + res = super(ir_cron, self)._handle_callback_exception(cr, uid, model, func, args, job_id, job_exception) + job = self.read(cr, uid, job_id, ['send_email', 'message', 'email_TO', 'email_account', 'name']) #TODO USE POWEREMAIL TEMPLATE - if job['send_email?']: + if job['send_email']: addresses = {'To' : job['email_TO']} mail_obj = self.pool.get('poweremail.mailbox') id = mail_obj.create(cr, uid, {