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.

48 lines
1.5 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="qweb_mail_pdf_export" model="ir.actions.report.xml">
  5. <field name="name">mail_as_letter</field>
  6. <field name="model">mail.compose.message</field>
  7. <field name="type">ir.actions.report.xml</field>
  8. <field name="report_name">mail_as_letter.report_mail_print</field>
  9. <field name="report_type">qweb-pdf</field>
  10. <field name="paperformat_id" eval="ref('report.paperformat_euro')"/>
  11. <field name="auto" eval="False"/>
  12. </record>
  13. <template id="mail_print">
  14. <t t-call="report.external_layout">
  15. <div class="page">
  16. <div class="oe_structure"/>
  17. <t t-foreach="o.partner_ids" t-as="p">
  18. <div class="col-xs-5 col-xs-offset-7">
  19. <address t-field="o.partner_ids"
  20. t-field-options='{"widget": "contact",
  21. "fields": ["address", "name"],
  22. "no_marker": true}' />
  23. </div>
  24. </t>
  25. <br/>
  26. <p>
  27. <b>Subject : <span t-field="o.subject" /></b>
  28. </p>
  29. <br/>
  30. <p>
  31. <span class="email_preview" t-raw="o.body" />
  32. </p>
  33. </div>
  34. </t>
  35. </template>
  36. <template id="report_mail_print">
  37. <t t-call="report.html_container">
  38. <t t-foreach="docs" t-as="o">
  39. <t t-call="mail_as_letter.mail_print"/>
  40. </t>
  41. </t>
  42. </template>
  43. </data>
  44. </openerp>