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.
74 lines
4.7 KiB
74 lines
4.7 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="report_timesheets">
|
|
<t t-call="web.html_container">
|
|
<t t-call="web.external_layout">
|
|
<div class="page">
|
|
<t t-foreach="docs" t-as="o">
|
|
<div class="row">
|
|
<div class="mt32 mb32">
|
|
<table style="border:1px solid;width:100%;">
|
|
<thead>
|
|
<tr style="height:35px;border:1px solid">
|
|
<th style="vertical-align:middle;text-align:center;border:1px solid">Company Name</th>
|
|
<th style="vertical-align:middle;text-align:center;border:1px solid">Employee Number</th>
|
|
<th style="vertical-align:middle;text-align:center;border:1px solid">Employee Name</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- <t t-if="identification != null">-->
|
|
<tr style="width:100%;height:30px;border:1px solid" >
|
|
<td style="vertical-align:middle;text-align:center;border:1px solid"><span t-esc="company"/></td>
|
|
<th style="vertical-align:middle;text-align:center;border:1px solid"><span t-esc="identification[0]['id']"/></th>
|
|
<th style="vertical-align:middle;text-align:center;border:1px solid"><span t-esc="identification[0]['name']"/></th>
|
|
</tr>
|
|
<!-- </t>-->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="mt32 mb32">
|
|
<table style="border:1px solid;width:100%;">
|
|
<thead>
|
|
<tr style="height:35px;border:1px solid">
|
|
<th style="vertical-align:middle;text-align:center;border:1px solid">Timesheet Period</th>
|
|
<th style="vertical-align:middle;text-align:center;border:1px solid">Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr style="height:35px;border:1px solid">
|
|
<td style="vertical-align:middle;text-align:center;border:1px solid"><span t-esc="period"/></td>
|
|
<td style="vertical-align:middle;text-align:center;border:1px solid"><span t-esc="total"/></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="mt32 mb32">
|
|
<table style="border:1px solid;width:100%;">
|
|
<thead>
|
|
<tr style="height:35px;border:1px solid">
|
|
<th style="vertical-align:middle;text-align:center;border:1px solid">Date</th>
|
|
<th style="vertical-align:middle;text-align:center;border:1px solid">Project</th>
|
|
<th style="vertical-align:middle;text-align:center;border:1px solid">Worked Time</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr t-foreach="timesheets" t-as="t" style="height:35px;border:1px solid">
|
|
<td style="vertical-align:middle;text-align:center;border:1px solid"><span t-esc="t['date']"/></td>
|
|
<td style="vertical-align:middle;text-align:center;border:1px solid"><span t-esc="t['project']"/></td>
|
|
<td style="vertical-align:middle;text-align:center;border:1px solid"><span t-esc="t['duration']"/></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</odoo>
|