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.
72 lines
3.3 KiB
72 lines
3.3 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- PDF Report Template for rented animal for farming report-->
|
|
<template id="animal_crop">
|
|
<t t-call="web.html_container">
|
|
<t t-foreach="docs" t-as="doc">
|
|
<t t-call="web.external_layout">
|
|
<div class="page">
|
|
<center>
|
|
<h1>Crop Animal Report</h1>
|
|
</center>
|
|
<br/>
|
|
<div t-if="doc.ref"
|
|
style="font-family: 'Montserrat', sans-serif !important;font-weight: bold;font-size: 1.3rem">
|
|
<p>Reference :
|
|
<t t-esc="doc.ref"/>
|
|
</p>
|
|
</div>
|
|
<div t-if="doc.farmer_id.farmer_id.name"
|
|
style="font-family: 'Montserrat', sans-serif !important;font-weight: bold;font-size: 1.3rem">
|
|
<p>Farmer :
|
|
<t t-esc="doc.farmer_id.farmer_id.name"/>
|
|
</p>
|
|
</div>
|
|
<div t-if="doc.seed_id.name"
|
|
style="font-family: 'Montserrat', sans-serif !important;font-weight: bold;font-size: 1.3rem">
|
|
<p>Crop :
|
|
<t t-esc="doc.seed_id.name"/>
|
|
</p>
|
|
</div>
|
|
<div t-if="doc.location_id.location_name"
|
|
style="font-family: 'Montserrat', sans-serif !important;font-weight: bold;font-size: 1.3rem">
|
|
<p>Location :
|
|
<t t-esc="doc.location_id.location_name"/>
|
|
</p>
|
|
</div>
|
|
<br>
|
|
</br>
|
|
<style>
|
|
table, thead, th, td, tr, tbody {
|
|
border: 1px solid black;
|
|
border-collapse: collapse;
|
|
padding: 5px;
|
|
}
|
|
</style>
|
|
<table class="table table-bordered"
|
|
style="border: 2px solid black;text-align: center !important;">
|
|
<thead>
|
|
<tr>
|
|
<strong>
|
|
<th>Animal</th>
|
|
<th>Quantity</th>
|
|
</strong>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr t-foreach="doc.animal_ids" t-as="line">
|
|
<td>
|
|
<span t-esc="line.animal_id.breed"/>
|
|
</td>
|
|
<td>
|
|
<span t-esc="line.qty"/>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</odoo>
|
|
|