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.
 
 
 
 
 

73 lines
4.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<template id="report_timesheets">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<div class="page">
<t t-call="report.external_layout">
<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>
<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>
</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">Account</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>
</openerp>