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.

43 lines
1.7 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. <h1 t-if="email_heading"><t t-raw="email_heading" /></h1>
  8. <t t-raw="0" />
  9. <footer t-if="not email_use_user_signature">
  10. <p>
  11. <a t-att-href="env.user.company_id.website">
  12. <t t-esc="env.user.company_id.name" />
  13. </a>
  14. </p>
  15. <p><t t-esc="env.user.company_id.phone" /></p>
  16. </footer>
  17. <footer t-if="email_use_user_signature">
  18. <t t-raw="env.user.signature" />
  19. </footer>
  20. </body>
  21. </html>
  22. </template>
  23. <template id="default_digest_tmpl" name="Mail digest default template">
  24. <t t-call="mail_digest.digest_layout">
  25. <div id="mail_content">
  26. <h2>Hello,</h2>
  27. <div id="mail_inner_content">
  28. <t t-foreach="grouped_messages.keys()" t-as="gkey">
  29. <t t-set="messages" t-value="grouped_messages[gkey]" />
  30. <t t-foreach="messages" t-as="msg">
  31. <div style="margin:20px">
  32. <h3 t-esc="msg.subject" />
  33. <t t-raw="msg.body" />
  34. </div>
  35. </t>
  36. </t>
  37. </div>
  38. </div>
  39. </t>
  40. </template>
  41. </odoo>