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.
 
 
 
 
 

113 lines
5.3 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="report_pest_details">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page">
<div class="oe_structure"/>
<div class="text-center">
<h1>Pest Report</h1>
</div>
<table class="table table-condensed">
<tr>
<td>FROM DATE</td>
<td>:</td>
<td>
<t t-if="form.get('date_from')">
<t t-esc="form['date_from']"/>
</t>
</td>
</tr>
<tr>
<td>TO DATE</td>
<td>:</td>
<td>
<t t-if="form.get('date_to')">
<t t-esc="form['date_to']"/>
</t>
</td>
</tr>
<table class="table table-condensed">
<thead>
<tr>
<th style="text-align:left;color:black!important;">
Reference
</th>
<th style="text-align:left;color:black!important;">
Farmer
</th>
<th style="text-align:left;color:black!important;">
Crop
</th>
<th style="text-align:left;color:black!important;">
Disease
</th>
<th style="text-align:left;color:black!important;">
Pest
</th>
<th style="text-align:left;color:black!important;">
Quantity
</th>
<th style="text-align:left;color:black!important;">
Cost
</th>
<th style="text-align:left;color:black!important;">
Total
</th>
<th style="text-align:left;color:black!important;">
Status
</th>
</tr>
</thead>
<tbody>
<t>
<tr t-foreach="record" t-as="val">
<td>
<span t-att-style="style"
t-esc="val[0]"/>
</td>
<td>
<span t-att-style="style"
t-esc="val[1]"/>
</td>
<td>
<span t-att-style="style"
t-esc="val[2]"/>
</td>
<td>
<span t-att-style="style"
t-esc="val[3]"/>
</td>
<td>
<span t-att-style="style"
t-esc="val[4]"/>
</td>
<td>
<span t-att-style="style"
t-esc="val[6]"/>
</td>
<td>
<span t-att-style="style"
t-esc="val[5]"/>
</td>
<td>
<span t-att-style="style"
t-esc="val[7]"/>
</td>
<td>
<span t-att-style="style"
t-esc="val[8]"/>
</td>
</tr>
</t>
</tbody>
</table>
</table>
</div>
</t>
</t>
</template>
</odoo>