|
@ -35,9 +35,9 @@ class ir_cron(orm.Model): |
|
|
_inherit = "ir.cron" |
|
|
_inherit = "ir.cron" |
|
|
|
|
|
|
|
|
_columns = { |
|
|
_columns = { |
|
|
'email_template': fields.many2one( |
|
|
|
|
|
'email.template', |
|
|
|
|
|
|
|
|
'email_template_id': fields.many2one('email.template', |
|
|
'Error E-mail Template', |
|
|
'Error E-mail Template', |
|
|
|
|
|
oldname="email_template", |
|
|
help="Select the email template that will be " |
|
|
help="Select the email template that will be " |
|
|
"sent when this scheduler fails."), |
|
|
"sent when this scheduler fails."), |
|
|
} |
|
|
} |
|
@ -50,7 +50,7 @@ class ir_cron(orm.Model): |
|
|
|
|
|
|
|
|
my_cron = self.browse(cr, uid, job_id) |
|
|
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 |
|
|
# we put the job_exception in context to be able to print it inside |
|
|
# the email template |
|
|
# the email template |
|
|
context = { |
|
|
context = { |
|
|