Browse Source

[IMP] scheduler_error_mailer: Mail template with Odoo

pull/455/head
Pedro M. Baeza 8 years ago
parent
commit
e733f78102
  1. 6
      scheduler_error_mailer/ir_cron_email_tpl.xml

6
scheduler_error_mailer/ir_cron_email_tpl.xml

@ -16,7 +16,7 @@
<field name="model_id" ref="base.model_ir_cron"/> <field name="model_id" ref="base.model_ir_cron"/>
<field name="auto_delete" eval="True"/> <field name="auto_delete" eval="True"/>
<field name="body_html"><![CDATA[ <field name="body_html"><![CDATA[
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
<div style="font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
<p>OpenERP tried to run the scheduler <em>${object.name or ''}</em> in the database <em>${ctx.get('dbname')}</em> but it failed. Here is the error message :</p> <p>OpenERP tried to run the scheduler <em>${object.name or ''}</em> in the database <em>${ctx.get('dbname')}</em> but it failed. Here is the error message :</p>
@ -24,7 +24,7 @@
${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'} ${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}
</strong> </strong>
<p>You may check the logs of the OpenERP server to get more information about this failure.</p>
<p>You may check the logs of the Odoo server to get more information about this failure.</p>
<p>Properties of the scheduler <em>${object.name or ''}</em> :</p> <p>Properties of the scheduler <em>${object.name or ''}</em> :</p>
<ul> <ul>
@ -39,7 +39,7 @@ ${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get
<p> <p>
-- <br/> -- <br/>
Automatic e-mail sent by OpenERP. Do not reply.<br/>
Automatic e-mail sent by Odoo. Do not reply.<br/>
Database : ${ctx.get('dbname')} Database : ${ctx.get('dbname')}
</p> </p>
</div> </div>

Loading…
Cancel
Save