Compare commits
2 Commits
16.0-exclu
...
16.0-exclu
Author | SHA1 | Date | |
---|---|---|---|
|
c991392b7b | ||
|
e21d56abfa |
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "helpdesk_portal_timesheet",
|
||||
"version": "16.0.1.0.0",
|
||||
"version": "16.0.1.0.1",
|
||||
"author": "Elabore",
|
||||
"website": "https://elabore.coop",
|
||||
"maintainer": "Elabore",
|
||||
@@ -12,7 +12,7 @@
|
||||
"summary": "Show ticket timesheets in portal view",
|
||||
# any module necessary for this one to work correctly
|
||||
"depends": [
|
||||
"helpdesk_mgmt_timesheet"
|
||||
"helpdesk_mgmt_timesheet","sale_timesheet_line_exclude",
|
||||
],
|
||||
"qweb": [],
|
||||
"external_dependencies": {
|
||||
|
@@ -13,21 +13,35 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tr t-foreach="timesheets" t-as="timesheet">
|
||||
<td><t t-esc="timesheet.date" t-options='{"widget": "date"}'/></td>
|
||||
<td t-attf-title="#{timesheet.employee_id.name}"><t t-esc="timesheet.employee_id.name"/></td>
|
||||
<td><t t-esc="timesheet.name"/></td>
|
||||
<t t-if="not timesheet.exclude_from_sale_order">
|
||||
<td>
|
||||
<t t-esc="timesheet.date" t-options='{"widget": "date"}'/>
|
||||
</td>
|
||||
<td t-attf-title="#{timesheet.employee_id.name}">
|
||||
<t t-esc="timesheet.employee_id.name"/>
|
||||
</td>
|
||||
<td>
|
||||
<t t-esc="timesheet.name"/>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span t-if="is_uom_day" t-esc="timesheet._get_timesheet_time_day()" t-options='{"widget": "timesheet_uom"}'/>
|
||||
<span t-else="" t-field="timesheet.unit_amount" t-options='{"widget": "float_time"}'/>
|
||||
</td>
|
||||
</t>
|
||||
</tr>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="3"></th>
|
||||
<th class="text-end">
|
||||
<t t-set="timesheets_amount" t-value="round(sum(timesheets.mapped('unit_amount')), 2) or 0.0"></t>
|
||||
<div t-if="is_uom_day"><strong>Days Spent:</strong> <span t-esc="timesheets._convert_hours_to_days(timesheets_amount)" t-options='{"widget": "timesheet_uom"}'/></div>
|
||||
<div t-else=""><strong>Hours Spent:</strong> <span t-esc="timesheets_amount" t-options='{"widget": "float_time"}'/></div>
|
||||
<div t-if="is_uom_day">
|
||||
<strong>Days Spent:</strong>
|
||||
<span t-esc="timesheets._convert_hours_to_days(timesheets_amount)" t-options='{"widget": "timesheet_uom"}'/>
|
||||
</div>
|
||||
<div t-else="">
|
||||
<strong>Hours Spent:</strong>
|
||||
<span t-esc="timesheets_amount" t-options='{"widget": "float_time"}'/>
|
||||
</div>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
Reference in New Issue
Block a user