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.

63 lines
2.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- Mail template are declared in a NOUPDATE block
  4. so users can freely customize/delete them -->
  5. <data noupdate="1">
  6. <record id="email_template_shift_summary" model="mail.template">
  7. <field name="name">Shift Summary</field>
  8. <field name="subject">Your next shift
  9. (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')})
  10. </field>
  11. <field name="email_from">${object.worker_id.company_id.email}
  12. </field>
  13. <field name="partner_to">
  14. ${object.replaced_id.id or object.worker_id.id|safe}
  15. </field>
  16. <field name="model_id" ref="model_beesdoo_shift_shift"/>
  17. <field name="auto_delete" eval="True"/>
  18. <field name="lang">${object.worker_id.lang}</field>
  19. <field name="body_html"><![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>Hello ${object.worker_id.name},</p>
  22. <p>You are awaited the ${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y')}
  23. for the shift starting at ${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%H:%M')}.
  24. <br/><br/>Please contact us at ${object.worker_id.company_id.email} if you have any trouble attending the shift.
  25. </p>
  26. <br/>
  27. <p>Sustainably yours,</p>
  28. <p>${object.worker_id.company_id.name}.</p>
  29. % if object.worker_id.company_id.street:
  30. ${object.worker_id.company_id.street}
  31. % endif
  32. % if object.worker_id.company_id.street2:
  33. ${object.worker_id.company_id.street2}<br/>
  34. % endif
  35. % if object.worker_id.company_id.city or object.worker_id.company_id.zip:
  36. ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}<br/>
  37. % endif
  38. % if object.worker_id.company_id.country_id:
  39. ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}<br/>
  40. % endif
  41. % if object.worker_id.company_id.phone:
  42. Phone:&nbsp; ${object.worker_id.company_id.phone}
  43. % endif
  44. % if object.worker_id.company_id.website:
  45. <div>
  46. Web :&nbsp;<a href="${object.worker_id.company_id.website}">${object.worker_id.company_id.website}</a>
  47. </div>
  48. %endif
  49. % if object.worker_id.company_id.logo_url:
  50. <div>
  51. <img src=${object.worker_id.company_id.logo_url}>
  52. </div>
  53. %endif
  54. </div>
  55. ]]></field>
  56. </record>
  57. </data>
  58. </odoo>