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.

50 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>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>
  19. <strong>
  20. ${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}
  21. </strong>
  22. <p>You may check the logs of the Odoo server to get more information about this failure.</p>
  23. <p>Properties of the scheduler <em>${object.name or ''}</em> :</p>
  24. <ul>
  25. <li>Model : ${object.model or ''}</li>
  26. <li>Method : ${object.function or ''}</li>
  27. <li>Arguments : ${object.args or ''}</li>
  28. <li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}</li>
  29. <li>Number of calls : ${object.numbercall or '0'}</li>
  30. <li>Repeat missed : ${object.doall}</li>
  31. <li>User : ${object.user_id.name or ''}</li>
  32. </ul>
  33. <p>
  34. -- <br/>
  35. Automatic e-mail sent by Odoo. Do not reply.<br/>
  36. Database : ${ctx.get('dbname')}
  37. </p>
  38. </div>
  39. ]]></field>
  40. </record>
  41. </data>
  42. </openerp>