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.

32 lines
1.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2012 Akretion
  4. The licence is in the file __openerp__.py
  5. -->
  6. <openerp>
  7. <!-- Email template -->
  8. <data noupdate="1">
  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="subject">[DB ${object._cr.dbname}] Scheduler '${object.name or ''}' FAILED</field>
  13. <field name="email_to">${object.user_id.user_email or ''}</field>
  14. <field name="model_id" ref="base.model_ir_cron"/>
  15. <field name="auto_delete" eval="True"/>
  16. <field name="body_text"><![CDATA[
  17. On the database '${object._cr.dbname}', OpenERP has run the scheduler '${object.name or ''}' but it failed. Here is the error message :
  18. ${hasattr(context.get('ctx').get('job_exception'), 'value') and context.get('ctx').get('job_exception').value or context.get('ctx').get('job_exception')}
  19. You may check the logs of OpenERP to get more information about this failure.
  20. The next action on this task is scheduled on ${object.nextcall or ''}.
  21. --
  22. Automatic e-mail sent by OpenERP. Do not reply.
  23. ]]></field>
  24. </record>
  25. </data>
  26. </openerp>