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.

39 lines
1.6 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <template id="view_email_template_corporate_identity">
  4. <body>
  5. <html>
  6. <img style="float: right" t-attf-src="data:image;base64,{{env.user.company_id.logo}}" />
  7. <!-- if some template calling us sets this variable,
  8. we print a h1 tag /-->
  9. <h1 t-if="email_heading"><t t-esc="email_heading" /></h1>
  10. <t t-raw="0" />
  11. <!-- use some standard footer if the user doesn't have
  12. a signature /-->
  13. <footer t-if="not email_use_user_signature">
  14. <p>
  15. <a t-att-href="env.user.company_id.website">
  16. <t t-esc="env.user.company_id.name" />
  17. </a>
  18. </p>
  19. <p><t t-esc="env.user.company_id.phone" /></p>
  20. </footer>
  21. <footer t-if="email_use_user_signature">
  22. <t t-raw="env.user.signature" />
  23. </footer>
  24. </html>
  25. </body>
  26. </template>
  27. <template id="view_email_template_demo1">
  28. <!-- because we can simply call the ci here, we don't need to
  29. repeat it /-->
  30. <t t-call="email_template_qweb.view_email_template_corporate_identity">
  31. <!-- the template we call uses this as title if we set it /-->
  32. <t t-set="email_heading" t-value="email_template.subject" />
  33. <h2>Dear <t t-esc="object.name" />,</h2>
  34. <p>
  35. This is an email template using qweb.
  36. </p>
  37. </t>
  38. </template>
  39. </odoo>