[IMP] helpdesk_portal_timesheet : hide non billable timesheet from portal

This commit is contained in:
jscampucci
2025-09-03 15:50:50 +02:00
committed by Laetitia Da Costa
parent e21d56abfa
commit c991392b7b
2 changed files with 17 additions and 15 deletions

View File

@@ -3,7 +3,7 @@
{ {
"name": "helpdesk_portal_timesheet", "name": "helpdesk_portal_timesheet",
"version": "16.0.1.0.0", "version": "16.0.1.0.1",
"author": "Elabore", "author": "Elabore",
"website": "https://elabore.coop", "website": "https://elabore.coop",
"maintainer": "Elabore", "maintainer": "Elabore",
@@ -12,7 +12,7 @@
"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" "helpdesk_mgmt_timesheet","sale_timesheet_line_exclude",
], ],
"qweb": [], "qweb": [],
"external_dependencies": { "external_dependencies": {

View File

@@ -13,19 +13,21 @@
</tr> </tr>
</thead> </thead>
<tr t-foreach="timesheets" t-as="timesheet"> <tr t-foreach="timesheets" t-as="timesheet">
<td> <t t-if="not timesheet.exclude_from_sale_order">
<t t-esc="timesheet.date" t-options='{"widget": "date"}'/> <td>
</td> <t t-esc="timesheet.date" t-options='{"widget": "date"}'/>
<td t-attf-title="#{timesheet.employee_id.name}"> </td>
<t t-esc="timesheet.employee_id.name"/> <td t-attf-title="#{timesheet.employee_id.name}">
</td> <t t-esc="timesheet.employee_id.name"/>
<td> </td>
<t t-esc="timesheet.name"/> <td>
</td> <t t-esc="timesheet.name"/>
<td class="text-end"> </td>
<span t-if="is_uom_day" t-esc="timesheet._get_timesheet_time_day()" t-options='{"widget": "timesheet_uom"}'/> <td class="text-end">
<span t-else="" t-field="timesheet.unit_amount" t-options='{"widget": "float_time"}'/> <span t-if="is_uom_day" t-esc="timesheet._get_timesheet_time_day()" t-options='{"widget": "timesheet_uom"}'/>
</td> <span t-else="" t-field="timesheet.unit_amount" t-options='{"widget": "float_time"}'/>
</td>
</t>
</tr> </tr>
<tfoot> <tfoot>
<tr> <tr>