Browse Source

#69 fix qweb template - add the new feature to read me

pull/69/head
ralwafaie 8 years ago
parent
commit
b2c70ba1e6
  1. 1
      mail_print/README.rst
  2. 32
      mail_print/views/mail_message_report.xml

1
mail_print/README.rst

@ -11,6 +11,7 @@ Usage
=====
* go to Technical -> Email -> Messages -> select the Email -> Print
* Emails can be also downloaded directly from The Messaging dashboard
Bug Tracker

32
mail_print/views/mail_message_report.xml

@ -8,45 +8,41 @@
<t t-call="report.internal_layout">
<div class="page">
<style>
.table1 {width: 50%}
.table2 {width: 100%}
.font {font-family: Helvetica, sans-serif;font-size: 10pt}
.bold {font-weight: bold}
.space {padding-right: 0.3em;}
</style>
<table class="table1 table-condensed">
<table class="table-condensed">
<tr>
<td class="font bold"><span>From:</span></td>
<td class="font"><u><span t-field="o.email_from"/></u></td>
<th>From:</th>
<td><u><span t-field="o.email_from"/></u></td>
</tr>
<tr>
<td class="font bold"><span>To:</span></td>
<td class="font" 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>
<th>To:</th>
<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>
</tr>
<tr>
<td class="font bold"><span>Subject:</span></td>
<td class="font"><span t-field="o.subject"/></td>
<th>Subject:</th>
<td><span t-field="o.subject"/></td>
</tr>
<tr>
<td class="font bold"><span>Date:</span></td>
<td class="font"><span t-field="o.date"/></td>
<th><span>Date:</span></th>
<td><span t-field="o.date"/></td>
</tr>
</table>
<div style ="height: 1cm"> </div>
<table class="table2 table-condensed">
<table class="table-condensed">
<tr>
<td class="font"><span t-field="o.body"/></td>
<td><span t-field="o.body"/></td>
</tr>
</table>
<t t-if="o.attachment_ids" >
<div style ="height: 2cm"> </div>
<table class="table table-condensed">
<tr>
<td class="font bold"><span>Attachments</span></td>
<th>Attachments</th>
</tr>
<tr t-foreach="o.attachment_ids" t-as="l">
<td class="font"><span t-field="l.name"/></td>
<td class="font"><span class="space" t-field="l.file_size"></span><span>Bytes</span></td>
<td><span t-field="l.name"/></td>
<td><span class="space" t-field="l.file_size"></span><span>Bytes</span></td>
</tr>
</table>
</t>

Loading…
Cancel
Save