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.
76 lines
2.9 KiB
76 lines
2.9 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Report action for property sale -->
|
|
<record id="property_sale_report_action_report" model="ir.actions.report">
|
|
<field name="name">Property Sale Report</field>
|
|
<field name="model">property.sale.report</field>
|
|
<field name="report_type">qweb-pdf</field>
|
|
<field name="report_name">advanced_property_management.property_sale_report_template</field>
|
|
<field name="report_file">advanced_property_management.property_sale_report_template</field>
|
|
</record>
|
|
|
|
<!-- Report template for Property sale -->
|
|
<template id="property_sale_report_template">
|
|
<t t-call="web.html_container">
|
|
<t t-call="web.external_layout">
|
|
<h1>Property Sale Report</h1>
|
|
<t t-if="from_date">
|
|
<div>
|
|
<strong>Date From :</strong>
|
|
<span t-esc="from_date"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="to_date">
|
|
<div>
|
|
<strong>Date To :</strong>
|
|
<span t-esc="to_date"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="partner_name">
|
|
<div>
|
|
<strong>Partner Name :</strong>
|
|
<span t-esc="partner_name"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="property_name">
|
|
<div>
|
|
<strong>Property Name :</strong>
|
|
<span t-esc="property_name"/>
|
|
</div>
|
|
</t>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>SL.no</th>
|
|
<th>Customer</th>
|
|
<th>Property Name</th>
|
|
<th>Create Date</th>
|
|
<th>State</th>
|
|
</tr>
|
|
</thead>
|
|
<t t-set="i" t-value="0"/>
|
|
<tbody>
|
|
<tr t-foreach="datas" t-as="line">
|
|
<td>
|
|
<t t-set="i" t-value="i + 1"/>
|
|
<span t-esc="i"/>
|
|
</td>
|
|
<td>
|
|
<span t-esc="line['customer']"/>
|
|
</td>
|
|
<td>
|
|
<span t-esc="line['name']"/>
|
|
</td>
|
|
<td>
|
|
<span t-esc="line['create_date']"/>
|
|
</td>
|
|
<td>
|
|
<span t-esc="line['state']"/>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</odoo>
|
|
|