[FIX] hr_timesheet: prevent name overflow in portal view

Steps:
- Open Settings > Users
- Change the name of the user by typing it multiple times
- Go to the portal view of the website
- Among the Documents select Task > select a task where our user is set as an
employee

Issue:
- When that particular task is chosen, under the Timesheets, the name is found
repeatedly in the table.

Cause:
- The text is not truncated due to which the name overflows.

Fix:
- adding a class 'o_portal_my_doc_table' in the table which helps to truncate
the text

closes odoo/odoo#140922

Task: 3383519
X-original-commit: b7952e2cf649584906ddab57386b711e06de9ba2
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
Manushi Shah (mash)
2023-11-04 06:43:08 +00:00
committed by mash
parent 3eba3484f3
commit 62eeabaa43
@@ -139,7 +139,7 @@
</template>
<template id="portal_timesheet_table" name="Portal Timesheet Table">
<table class="table table-sm">
<table class="o_portal_my_doc_table table table-sm">
<thead>
<tr>
<th>Date</th>
@@ -151,7 +151,7 @@
</thead>
<tr t-foreach="timesheets" t-as="timesheet">
<td><t t-esc="timesheet.date" t-options='{"widget": "date"}'/></td>
<td><t t-esc="timesheet.employee_id.name"/></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"}'/>