From f466b893a73a08214b5da94c9c2a2574af23ce99 Mon Sep 17 00:00:00 2001 From: "Anh Thao Pham (pta)" Date: Mon, 26 Jul 2021 09:47:22 +0000 Subject: [PATCH] [FIX] hr_timesheet: fix incorrect company on timesheet report - Create 2 companies (i.e. Company A & Company B) - Create user with access to both companies and default company set to Company B - Log with created user - Switch to Company A - Go to Project and create a new Project (i.e. Project X) - Go to Timesheets and add a line for Project X - Display all timesheets in list view - Select created timesheet and print "Timesheet Entries" Logo and address printed on timesheet report are from Company B. Company used for timesheet report is default company of current user. This fix will use company linked to the project if it is unique. Otherwise, it will use current company. opw-2502182 opw-2509463 closes odoo/odoo#74281 X-original-commit: 0812641544d49746d111ca4bb88a2091bf0dd6c8 Signed-off-by: LTU-Odoo --- addons/hr_timesheet/report/report_timesheet_templates.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr_timesheet/report/report_timesheet_templates.xml b/addons/hr_timesheet/report/report_timesheet_templates.xml index e03f713d63f..1e74abaeecb 100644 --- a/addons/hr_timesheet/report/report_timesheet_templates.xml +++ b/addons/hr_timesheet/report/report_timesheet_templates.xml @@ -2,6 +2,7 @@