|
|
@ -1,43 +1,40 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8" ?> |
|
|
|
<odoo> |
|
|
|
<template id="vehicle_crop"> |
|
|
|
<t t-call="web.html_container"> |
|
|
|
<t t-foreach="docs" t-as="doc"> |
|
|
|
<t t-call="web.external_layout"> |
|
|
|
<div class="page"> |
|
|
|
<strong> |
|
|
|
<h1>Crop Vehicle Report</h1> |
|
|
|
</strong> |
|
|
|
<table class="table table-sm" |
|
|
|
style="border: 2px solid black;"> |
|
|
|
<tr> |
|
|
|
<td>REFERENCE</td> |
|
|
|
<td>:</td> |
|
|
|
<td> |
|
|
|
<t t-esc="doc.ref"/> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>FARMER</td> |
|
|
|
<td>:</td> |
|
|
|
<td> |
|
|
|
<t t-esc="doc.farmer_id.farmer_name.name"/> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>CROP</td> |
|
|
|
<td>:</td> |
|
|
|
<td> |
|
|
|
<t t-esc="doc.seed_id.name"/> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>LOCATION</td> |
|
|
|
<td>:</td> |
|
|
|
<td> |
|
|
|
<t t-esc="doc.location_id.location_name"/> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
|
|
|
|
<center> |
|
|
|
<h1>Crop Vehicle Report</h1> |
|
|
|
</center> |
|
|
|
|
|
|
|
<br></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_name.name" |
|
|
|
style="font-family: 'Montserrat', sans-serif !important;font-weight: bold;font-size: 1.3rem"> |
|
|
|
<p>Farmer : |
|
|
|
<t t-esc="doc.farmer_id.farmer_name.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> |
|
|
@ -49,7 +46,7 @@ |
|
|
|
} |
|
|
|
</style> |
|
|
|
<table class="table table-sm" |
|
|
|
style="border: 2px solid black;"> |
|
|
|
style="border: 2px solid black"> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<strong> |
|
|
@ -74,17 +71,13 @@ |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<record id="report_vehicle_crop" model="ir.actions.report"> |
|
|
|
<field name="name">Vehicle Crop Report</field> |
|
|
|
<field name="model">crop.requests</field> |
|
|
|
<field name="report_type">qweb-pdf</field> |
|
|
|
<field name="report_name">agriculture_management_odoo.vehicle_crop |
|
|
|
</field> |
|
|
|
<field name="report_file">agriculture_management_odoo.vehicle_crop |
|
|
|
</field> |
|
|
|
<field name="binding_type">report</field> |
|
|
|
<field name="report_name">agriculture_management_odoo.vehicle_crop</field> |
|
|
|
<field name="report_file">agriculture_management_odoo.vehicle_crop</field> |
|
|
|
<field name="binding_model_id" ref="model_crop_requests"/> |
|
|
|
<field name="binding_type">report</field> |
|
|
|
</record> |
|
|
|
</odoo> |