diff options
| author | Goffin Simon <sig@odoo.com> | 2020-08-25 14:53:32 +0000 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2020-08-26 15:22:44 +0000 |
| commit | d64b68cc04dabfb3f94b05cd181c216550a07c9e (patch) | |
| tree | b0a079586484b198ccca23c1ea6f1b846b5e07fc /addons | |
| parent | 4500db539d92b2934f583e178cf91fd943c696b3 (diff) | |
[FIX] hr_timesheet: Access rights error with Timesheet Entries
Steps to reproduce the bug:
- Let's consider a user U linked to an employee E
- U has no right in Project and he is timesheet user
- Let's consier a leave type LT generating timesheets
- LT is linked to Internal Project IP and Internal Task for timesheet ITT
- IP has privacy "on invitation only"
- U makes leave request LR for leave of type LT
- His manager approves LR
- U goes to My timesheets list view and select the timesheet generated by the approval of LR
- U prints Timesheet Entries
Bug:
An access rights error was raised.
opw:2321040
closes odoo/odoo#56611
X-original-commit: 31a9faa7c83029386da5e1bac01dda0d124f8970
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/hr_timesheet/report/report_timesheet_templates.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/hr_timesheet/report/report_timesheet_templates.xml b/addons/hr_timesheet/report/report_timesheet_templates.xml index 2acf1c87bfa..e03f713d63f 100644 --- a/addons/hr_timesheet/report/report_timesheet_templates.xml +++ b/addons/hr_timesheet/report/report_timesheet_templates.xml @@ -48,10 +48,10 @@ <span t-field="l.name" t-options="{'widget': 'text'}"/> </td> <td t-if="show_project"> - <span t-field="l.project_id.name"/> + <span t-field="l.project_id.sudo().name"/> </td> <td t-if="show_task"> - <t t-if="l.task_id"><span t-field="l.task_id.name"/></t> + <t t-if="l.task_id"><span t-field="l.task_id.sudo().name"/></t> </td> <td class="text-right"> <span t-if="is_uom_day" t-esc="l._get_timesheet_time_day()" t-options="{'widget': 'timesheet_uom'}"/> |
