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.

47 lines
1.9 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <template id="digest_layout" name="Mail digest layout">
  4. <html>
  5. <body>
  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-raw="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. </body>
  25. </html>
  26. </template>
  27. <template id="default_digest_tmpl" name="Mail digest default template">
  28. <t t-call="mail_digest.digest_layout">
  29. <div id="mail_content">
  30. <h2>Hello,</h2>
  31. <div id="mail_inner_content">
  32. <t t-foreach="grouped_messages.iterkeys()" t-as="gkey">
  33. <t t-set="messages" t-value="grouped_messages[gkey]" />
  34. <t t-foreach="messages" t-as="msg">
  35. <div style="margin:20px">
  36. <h3 t-esc="msg.subject" />
  37. <t t-raw="msg.body" />
  38. </div>
  39. </t>
  40. </t>
  41. </div>
  42. </div>
  43. </t>
  44. </template>
  45. </odoo>