Browse Source

[IMP] change position of information wizard from header to page and refactoring code

pull/196/head
Ciro Urselli 9 years ago
committed by Leonardo Pistone
parent
commit
9ecd8b84fc
  1. 58
      account_financial_report_qweb/report/templates/open_invoice_report.xml
  2. 7
      account_financial_report_qweb/reports.xml

58
account_financial_report_qweb/report/templates/open_invoice_report.xml

@ -32,6 +32,11 @@
</npage>
</div>
</div>
</div>
<t t-call="report.html_container">
<t t-call="report.internal_layout">
<div class="page">
<div class="row">
<table class="table table-bordered table-condensed" style="text-align: center;">
<thead>
@ -53,16 +58,12 @@
<td></td>
</tbody>
</table>
<br/>
</div>
</div>
<t t-call="report.html_container">
<t t-call="report.internal_layout">
<div class="page">
<t t-foreach="data" t-as="account">
<p><span t-esc="account" /></p>
<p><strong><span t-esc="account"/></strong></p>
<t t-foreach="data[account]" t-as="partner">
<p><span t-esc="partner" /></p>
<p><strong><span t-esc="partner"/></strong></p>
<table class="table table-bordered table-condensed">
<thead>
<tr>
@ -82,29 +83,38 @@
</thead>
<tbody>
<tr t-foreach="data[account][partner]" t-as="move">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td><span t-esc="move['date']"/></td>
<td><span t-esc="move['period']"/></td>
<td><span t-esc="move['entry']"/></td>
<td><span t-esc="move['journal']"/></td>
<td><span t-esc="partner"/></td>
<td><span t-esc="move['reference']"/></td>
<td><span t-esc="move['label']"/></td>
<td><span t-esc="move['rec']"/></td>
<td><span t-esc="move['due_date']"/></td>
<td class="text-right"><span t-esc="move['debit']"/></td>
<td class="text-right"><span t-esc="move['credit']"/></td>
<td class="text-right"><span t-esc="move['balance']"/></td>
</tr>
<tr>
<td>Comulate Balance on Partner</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td colspan="6"></td>
<td colspan="3">Comulate Balance on Partner</td>
<td class="text-right">0</td>
<td class="text-right">0</td>
<td class="text-right">0</td>
</tr>
</tbody>
</table>
</t>
<p>ACCOUNT Comulate Balance</p>
<table>
<tbody><tr><h2>
<td colspan="9"><strong><span t-esc="account"/> Comulate Balance</strong></td>
<td class="text-right">0</td>
<td class="text-right">0</td>
<td class="text-right">0</td></h2></tr>
</tbody>
</table>
<br/>
</t>
</div>
</t>

7
account_financial_report_qweb/reports.xml

@ -15,9 +15,10 @@
<record id="open_invoice_report_format_a4_horizontal" model="report.paperformat">
<field name="name">Open Invoice Report Internal A4 Horizontal</field>
<field name="margin_top">20</field>
<field name="margin_bottom">20</field>
<field name="header_spacing">20</field>
<field name="margin_top">10</field>
<field name="margin_bottom">10</field>
<field name="header_line" eval="True"/>
<field name="header_spacing">10</field>
<field name="orientation">Landscape</field>
</record>

Loading…
Cancel
Save