Work on reports

This commit is contained in:
sonal arora
2020-09-10 16:49:42 +05:30
parent 795267e0a0
commit cb4f4664e4
3 changed files with 23 additions and 2 deletions

View File

@@ -56,7 +56,7 @@
<div class="col-3" t-if="o.payment_term_id">
<font color="#fff">
<strong> Payment Term:</strong>
<strong> Payment Term: </strong>
<p t-field="o.payment_term_id"/></font>
</div>

View File

@@ -2,6 +2,24 @@
<odoo>
<data>
<!-- QWeb Reports -->
<record id="paperformat_payment_receipt-report" model="report.paperformat">
<field name="name">A4 Payment Receipt</field>
<field name="default" eval="True" />
<field name="format">A4</field>
<field name="page_height">0</field>
<field name="page_width">0</field>
<field name="orientation">Portrait</field>
<field name="margin_top">8</field>
<field name="margin_bottom">0</field>
<field name="margin_left">3</field>
<field name="margin_right">0</field>
<field name="header_line" eval="False" />
<field name="header_spacing">5</field>
<field name="dpi">90</field>
</record>
<report
id="action_report_payment_receipt_reports"
model="account.payment"
@@ -10,5 +28,8 @@
name="reports.report_payment_receipt_views"
file="reports.report_payment_receipt_views"
/>
<record id="action_report_payment_receipt_reports" model="ir.actions.report.xml">
<field name="paperformat_id" ref="reports.paperformat_payment_receipt"/>
</record>
</data>
</odoo>

View File

@@ -6,7 +6,7 @@
<div class="page">
<table class="table table-sm">
<tr>
<th style="border:1px solid;width:50%">
<th style="border:1px solid;width:50%;top:2px">
<strong>Code: </strong><br/>
<strong>Address: </strong><br/>
<strong>Telephone Number: </strong><br/>