You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2012-2013 Akretion (http://www.akretion.com/)
  4. The licence is in the file __openerp__.py
  5. -->
  6. <openerp>
  7. <data noupdate="1">
  8. <!-- Error Email template -->
  9. <record id="scheduler_error_mailer" model="email.template">
  10. <field name="name">Scheduler Error</field>
  11. <field name="email_from">${object.user_id.user_email or ''}</field>
  12. <field name="email_to">${object.user_id.user_email or ''}</field>
  13. <field name="subject">[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED</field>
  14. <field name="model_id" ref="base.model_ir_cron"/>
  15. <field name="auto_delete" eval="True"/>
  16. <field name="body_html"><![CDATA[
  17. <div style="font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  18. <p>Odoo 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>
  19. <strong>
  20. ${ctx.get('job_exception') and ctx.get('job_exception').value or ctx.get('job_exception') or 'Failed to get the error message from the context.'|e}
  21. </strong>
  22. <pre>
  23. ${ctx.get('traceback')|e}
  24. </pre>
  25. <p>You may check the logs of the Odoo server to get more information about this failure.</p>
  26. <p>Properties of the scheduler <em>${object.name or ''}</em> :</p>
  27. <ul>
  28. <li>Model : ${object.model or ''}</li>
  29. <li>Method : ${object.function or ''}</li>
  30. <li>Arguments : ${object.args or ''}</li>
  31. <li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}</li>
  32. <li>Number of calls : ${object.numbercall or '0'}</li>
  33. <li>Repeat missed : ${object.doall}</li>
  34. <li>User : ${object.user_id.name or ''}</li>
  35. </ul>
  36. <p>
  37. -- <br/>
  38. Automatic e-mail sent by Odoo. Do not reply.<br/>
  39. Database : ${ctx.get('dbname')}
  40. </p>
  41. </div>
  42. ]]></field>
  43. </record>
  44. </data>
  45. </openerp>