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
2.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. scheduler_error_mailer for Odoo
  4. Copyright (C) 2012-2013 Akretion Sébastien BEAU,David Beal,Alexis de Lattre
  5. Copyright (C) 2016 Sodexis
  6. The licence is in the file __openerp__.py
  7. -->
  8. <odoo>
  9. <data noupdate="1">
  10. <!-- Error Email template -->
  11. <record id="scheduler_error_mailer" model="mail.template">
  12. <field name="name">Scheduler Error</field>
  13. <field name="email_from">${object.user_id.email or ''}</field>
  14. <field name="email_to">${object.user_id.email or ''}</field>
  15. <field name="subject">[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED</field>
  16. <field name="model_id" ref="base.model_ir_cron"/>
  17. <field name="auto_delete" eval="True"/>
  18. <field name="body_html">
  19. <![CDATA[
  20. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  21. <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>
  22. <strong>
  23. ${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}
  24. </strong>
  25. <p>You may check the logs of the OpenERP 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 OpenERP. Do not reply.<br/>
  39. Database : ${ctx.get('dbname')}
  40. </p>
  41. </div>
  42. ]]>
  43. </field>
  44. </record>
  45. </data>
  46. </odoo>