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.

74 lines
2.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="verification_email_template" model="mail.template">
  4. <field name="name">Email verification link</field>
  5. <field name="subject">mail verification link</field>
  6. <field name="email_to">${(not object.partner_id and object.email_from)|safe}</field>
  7. <field name="model_id" ref="crm.model_crm_lead"/>
  8. <field name="auto_delete" eval="True"/>
  9. <field name="body_html"><![CDATA[
  10. <p>
  11. % if object.partner_id
  12. Dear <strong>${object.partner_id.name}</strong>,<br/>
  13. % endif
  14. % if not object.partner_id
  15. Dear <strong>${object.email_from}</strong>,<br/>
  16. % endif
  17. Please click on below link to verify your email address <strong>${object.email_link}</strong>.<br/>
  18. Thank you.
  19. </p>
  20. ]]>
  21. </field>
  22. </record>
  23. <record id="confirmation_email_template" model="mail.template">
  24. <field name="name">Email confirmation</field>
  25. <field name="subject">Verified Email</field>
  26. <field name="email_to">${user.email|safe}</field>
  27. <field name="model_id" ref="base.model_res_partner"/>
  28. <field name="auto_delete" eval="True"/>
  29. <field name="body_html"><![CDATA[
  30. <p>
  31. Dear <strong>${user.partner_id.name}</strong>,<br/>
  32. This email address <strong> ${object.email}</strong> has been verified by user.<br/>
  33. Thank you.
  34. </p>
  35. ]]>
  36. </field>
  37. </record>
  38. <record id="requested_info_email_template" model="mail.template">
  39. <field name="name">Requested Information</field>
  40. <field name="subject">Requested Information</field>
  41. <field name="email_to">${object.email_from|safe}</field>
  42. <field name="model_id" ref="crm.model_crm_lead"/>
  43. <field name="auto_delete" eval="True"/>
  44. <field name="body_html"><![CDATA[
  45. <p>
  46. Dear <strong>${object.contact_name}</strong>,<br/><br/>
  47. Thank you very much for your contact. Your request:
  48. <table class="table">
  49. <tbody>
  50. <tr>
  51. <td><strong>Subject</strong></td><td>${object.name}</td>
  52. </tr>
  53. <tr>
  54. <td><strong>Question</strong></td><td>${object.description[:-50]}</td>
  55. </tr>
  56. <tr>We will come back to you shortly.</tr>
  57. </tbody>
  58. </table>
  59. <br/><br/>
  60. Thank you.
  61. </p>
  62. ]]>
  63. </field>
  64. </record>
  65. </odoo>