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.

48 lines
1.8 KiB

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