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.
48 lines
1.8 KiB
48 lines
1.8 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!--Templates for the scrap order report-->
|
|
<template id="report_scrap_order">
|
|
<t t-call="web.html_container">
|
|
<t t-call="web.external_layout">
|
|
<div class="page">
|
|
<h2>Scrap Order Report</h2>
|
|
<div>
|
|
<strong> Report Date:</strong>
|
|
<span t-esc="datetime.datetime.now().strftime('%Y-%m-%d')"/>
|
|
</div>
|
|
<div>
|
|
<t t-if="from_date">
|
|
<strong>From Date:</strong>
|
|
<span t-out="from_date"/>
|
|
</t>
|
|
</div>
|
|
<div>
|
|
<t t-if="to_date">
|
|
<strong>To Date:</strong>
|
|
<span t-out="to_date"/>
|
|
</t>
|
|
</div>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Sl No</th>
|
|
<th>Product</th>
|
|
<th>Quantity</th>
|
|
<th>Date</th>
|
|
</tr>
|
|
</thead>
|
|
<tr t-foreach="var" t-as="var">
|
|
<td>
|
|
<span t-esc="var_index+1"/>
|
|
</td>
|
|
<td t-esc="var['product']['en_US']"/>
|
|
<td t-esc="var['quantity']"/>
|
|
<td><t t-if="var['date']"><t t-esc="var['date']"/>
|
|
</t></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</odoo>
|