[IMP] helpdesk_portal_timesheet : correct sum from non billable timesheet from portal
This commit is contained in:
@@ -12,7 +12,8 @@
|
|||||||
"summary": "Show ticket timesheets in portal view",
|
"summary": "Show ticket timesheets in portal view",
|
||||||
# any module necessary for this one to work correctly
|
# any module necessary for this one to work correctly
|
||||||
"depends": [
|
"depends": [
|
||||||
"helpdesk_mgmt_timesheet","sale_timesheet_line_exclude",
|
"helpdesk_mgmt_timesheet",
|
||||||
|
"sale_timesheet_line_exclude",
|
||||||
],
|
],
|
||||||
"qweb": [],
|
"qweb": [],
|
||||||
"external_dependencies": {
|
"external_dependencies": {
|
||||||
@@ -31,4 +32,4 @@
|
|||||||
# and independently installed. Used for synergetic or glue modules.
|
# and independently installed. Used for synergetic or glue modules.
|
||||||
"auto_install": False,
|
"auto_install": False,
|
||||||
"application": False,
|
"application": False,
|
||||||
}
|
}
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th colspan="3"></th>
|
<th colspan="3"></th>
|
||||||
<th class="text-end">
|
<th class="text-end">
|
||||||
<t t-set="timesheets_amount" t-value="round(sum(timesheets.mapped('unit_amount')), 2) or 0.0"></t>
|
<t t-set="timesheets_amount" t-value="round(sum(timesheets.filtered(lambda t: not t.exclude_from_sale_order).mapped('unit_amount')), 2) or 0.0"></t>
|
||||||
<div t-if="is_uom_day">
|
<div t-if="is_uom_day">
|
||||||
<strong>Days Spent:</strong>
|
<strong>Days Spent:</strong>
|
||||||
<span t-esc="timesheets._convert_hours_to_days(timesheets_amount)" t-options='{"widget": "timesheet_uom"}'/>
|
<span t-esc="timesheets._convert_hours_to_days(timesheets_amount)" t-options='{"widget": "timesheet_uom"}'/>
|
||||||
|
Reference in New Issue
Block a user