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.

46 lines
1.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. </odoo>