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.

58 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 (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')})</field>
  9. <field name="email_from">${object.worker_id.company_id.email}</field>
  10. <field name="partner_to">${object.replaced_id.id or object.worker_id.id|safe}</field>
  11. <field name="model_id" ref="model_beesdoo_shift_shift"/>
  12. <field name="auto_delete" eval="True"/>
  13. <field name="lang">${object.worker_id.lang}</field>
  14. <field name="body_html"><![CDATA[
  15. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  16. <p>Hello ${object.worker_id.name},</p>
  17. <p>You are awaited the ${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y')}
  18. for the shift starting at ${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%H:%M')}.
  19. <br/><br/>Please contact us at ${object.worker_id.company_id.email} if you have any trouble attending the shift.
  20. </p>
  21. <br/>
  22. <p>Sustainably yours,</p>
  23. <p>${object.worker_id.company_id.name}.</p>
  24. % if object.worker_id.company_id.street:
  25. ${object.worker_id.company_id.street}
  26. % endif
  27. % if object.worker_id.company_id.street2:
  28. ${object.worker_id.company_id.street2}<br/>
  29. % endif
  30. % if object.worker_id.company_id.city or object.worker_id.company_id.zip:
  31. ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}<br/>
  32. % endif
  33. % if object.worker_id.company_id.country_id:
  34. ${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/>
  35. % endif
  36. % if object.worker_id.company_id.phone:
  37. Phone:&nbsp; ${object.worker_id.company_id.phone}
  38. % endif
  39. % if object.worker_id.company_id.website:
  40. <div>
  41. Web :&nbsp;<a href="${object.worker_id.company_id.website}">${object.worker_id.company_id.website}</a>
  42. </div>
  43. %endif
  44. % if object.worker_id.company_id.logo_url:
  45. <div>
  46. <img src=${object.worker_id.company_id.logo_url}>
  47. </div>
  48. %endif
  49. </div>
  50. ]]></field>
  51. </record>
  52. </data>
  53. </odoo>