flectra/addons/hr_timesheet/views/project_portal_templates.xml

29 lines
1.2 KiB
XML
Raw Permalink Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<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>
2018-01-16 11:34:37 +01:00
</flectra>