Skip to content

Commit a4a5d97

Browse files
committed
[FIX] hr_timesheet_attendance: fix the timesheet attendance report
Attendance report is calculated from the timesheets of all the companies when multi-company is enabled but only one company is allowed. This commit fixes it. Steps to reproduce: - Create two companies - Create an employee with a user allowed in both companies - Create timesheets in both companies for that employee - Allow only one of the two companies - Check the Timesheet Attendance report -> timesheets from both companies are counted This issue arrived from this commit: odoo@c69fe38 task-2782768 closes odoo#94222 X-original-commit: 0931807 Signed-off-by: Laurent Stukkens (ltu) <[email protected]>
1 parent aeeab8c commit a4a5d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/hr_timesheet_attendance/report/hr_timesheet_attendance_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def init(self):
4545
NULL AS attendance,
4646
ts.unit_amount AS timesheet,
4747
ts.date AS date,
48-
NULL AS company_id
48+
ts.company_id AS company_id
4949
FROM account_analytic_line AS ts
5050
WHERE ts.project_id IS NOT NULL
5151
) AS t

0 commit comments

Comments
 (0)