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.

56 lines
2.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="mail_message">
  5. <t t-call="report.html_container">
  6. <t t-foreach="docs" t-as="o">
  7. <t t-call="report.internal_layout">
  8. <div class="page">
  9. <style>
  10. .space {padding-right: 0.3em;}
  11. </style>
  12. <table class="table-condensed">
  13. <tr>
  14. <th>From:</th>
  15. <td><u><span t-field="o.email_from"/></u></td>
  16. </tr>
  17. <tr>
  18. <th>To:</th>
  19. <td t-foreach="o.partner_ids" t-as="p"><span t-field="p.name"/> <t t-if="p.email"> <u><span t-field="p.email"></span></u></t></td>
  20. </tr>
  21. <tr>
  22. <th>Subject:</th>
  23. <td><span t-field="o.subject"/></td>
  24. </tr>
  25. <tr>
  26. <th><span>Date:</span></th>
  27. <td><span t-field="o.date"/></td>
  28. </tr>
  29. </table>
  30. <div style ="height: 1cm"> </div>
  31. <table class="table-condensed">
  32. <tr>
  33. <td><span t-field="o.body"/></td>
  34. </tr>
  35. </table>
  36. <t t-if="o.attachment_ids" >
  37. <div style ="height: 2cm"> </div>
  38. <table class="table table-condensed">
  39. <tr>
  40. <th>Attachments</th>
  41. </tr>
  42. <tr t-foreach="o.attachment_ids" t-as="l">
  43. <td><span t-field="l.name"/></td>
  44. <td><span class="space" t-field="l.file_size"></span><span>Bytes</span></td>
  45. </tr>
  46. </table>
  47. </t>
  48. </div>
  49. </t>
  50. </t>
  51. </t>
  52. </template>
  53. </data>
  54. </openerp>