flectra/addons/hr_timesheet/views/project_portal_templates.xml
2018-01-16 02:34:37 -08:00

29 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<template id="portal_my_task" inherit_id="project.portal_my_task" name="Portal: My Task with imesheets">
<xpath expr="//div[hasclass('panel-body')]" position="inside">
<div class="container" t-if="task.timesheet_ids">
<hr/>
<table class="table table-hover">
<thead>
<tr class="active">
<th>Date</th>
<th class="col-md-6">Description</th>
<th>Responsible</th>
<th>Duration</th>
</tr>
</thead>
<tr t-foreach="task.timesheet_ids" t-as="timesheet">
<td><t t-esc="timesheet.date"/></td>
<td><t t-esc="timesheet.name"/></td>
<td><t t-esc="timesheet.sudo().user_id.name"/></td>
<td><span t-field="timesheet.unit_amount" t-field-options='{"widget": "duration", "unit": "hour", "round": "minute"}'/></td>
</tr>
</table>
</div>
</xpath>
</template>
</flectra>