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
+