3 Commits

Author SHA1 Message Date
jscampucci
46ac195662 [IMP] helpdesk_portal_timesheet : correct sum from non billable timesheet from portal 2025-09-11 10:04:59 +02:00
jscampucci
6814938949 [IMP] helpdesk_portal_timesheet : hide non billable timesheet from portal 2025-09-08 09:38:14 +02:00
jscampucci
070193bea1 [CLN] lint commit 2025-09-08 09:38:14 +02:00
2 changed files with 4 additions and 3 deletions

View File

@@ -12,7 +12,8 @@
"summary": "Show ticket timesheets in portal view",
# any module necessary for this one to work correctly
"depends": [
"helpdesk_mgmt_timesheet","sale_timesheet_line_exclude",
"helpdesk_mgmt_timesheet",
"sale_timesheet_line_exclude",
],
"qweb": [],
"external_dependencies": {

View File

@@ -33,7 +33,7 @@
<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>
<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">
<strong>Days Spent:</strong>
<span t-esc="timesheets._convert_hours_to_days(timesheets_amount)" t-options='{"widget": "timesheet_uom"}'/>