From 2c3a2cdb563b5c1ef0a6aaf9d31720d36c465fd0 Mon Sep 17 00:00:00 2001 From: "david.beal@akretion.com" Date: Mon, 15 Sep 2014 21:44:29 +0200 Subject: [PATCH] [FIX] renamed 'email_template' m2o field in 'email_template_id' in scheduler_error_mailer module --- scheduler_error_mailer/ir_cron.py | 5 +++-- scheduler_error_mailer/ir_cron.xml | 2 +- scheduler_error_mailer/ir_cron_demo.xml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scheduler_error_mailer/ir_cron.py b/scheduler_error_mailer/ir_cron.py index 17b0f2c30..649c55e51 100644 --- a/scheduler_error_mailer/ir_cron.py +++ b/scheduler_error_mailer/ir_cron.py @@ -35,9 +35,10 @@ class ir_cron(orm.Model): _inherit = "ir.cron" _columns = { - 'email_template': fields.many2one( + 'email_template_id': fields.many2one( 'email.template', 'Error E-mail Template', + oldname="email_template", help="Select the email template that will be " "sent when this scheduler fails."), } @@ -50,7 +51,7 @@ class ir_cron(orm.Model): my_cron = self.browse(cr, uid, job_id) - if my_cron.email_template: + if my_cron.email_template_id: # we put the job_exception in context to be able to print it inside # the email template context = { diff --git a/scheduler_error_mailer/ir_cron.xml b/scheduler_error_mailer/ir_cron.xml index ee1bcfd6d..74a3d3edf 100644 --- a/scheduler_error_mailer/ir_cron.xml +++ b/scheduler_error_mailer/ir_cron.xml @@ -14,7 +14,7 @@ - + diff --git a/scheduler_error_mailer/ir_cron_demo.xml b/scheduler_error_mailer/ir_cron_demo.xml index 4c6fc5e7b..4c108040c 100644 --- a/scheduler_error_mailer/ir_cron_demo.xml +++ b/scheduler_error_mailer/ir_cron_demo.xml @@ -17,9 +17,9 @@ hours -1 - ir.cron _test_scheduler_failure +