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.
 
 
 
 
 

39 lines
1.5 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Template for the pdf file-->
<template id="download_template">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page">
<h1 style="text-align:center">Downloaded Data</h1>
<hr/>
<br/>
<p>Name :
<span t-esc="name"/>
</p>
<p>Data</p>
<hr/>
<div>
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Data</th>
</tr>
</thead>
<tbody>
<tr t-foreach="value" t-as="data">
<th t-esc="data.get('name')"/>
<td t-if="data.get('data') == 'False' or data.get('data') == ''">
No data for this field
</td>
<td t-else="" t-esc="data.get('data')"/>
</tr>
</tbody>
</table>
</div>
</div>
</t>
</t>
</template>
</odoo>