From b81d17bcc075c063e6c0b5d44e83e2b4622b6b0b Mon Sep 17 00:00:00 2001 From: raman Date: Tue, 10 Jun 2025 10:50:22 +0530 Subject: [PATCH] changes --- .../hr_emp_dashboard/static/src/js/profile_component.js | 3 --- .../static/src/xml/employee_profile_template.xml | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/addons_extensions/hr_emp_dashboard/static/src/js/profile_component.js b/addons_extensions/hr_emp_dashboard/static/src/js/profile_component.js index 112dfe751..5d4f30c94 100644 --- a/addons_extensions/hr_emp_dashboard/static/src/js/profile_component.js +++ b/addons_extensions/hr_emp_dashboard/static/src/js/profile_component.js @@ -309,7 +309,6 @@ attendanceLines.forEach(line => { const dateStr = createDate.toLocaleDateString('en-IN', { timeZone: 'Asia/Kolkata' }); const workedHours = parseFloat(line.worked_hours); - const working_hours = '' const checkIn = new Date(line.check_in + 'Z'); const checkOut = new Date(line.check_out + 'Z'); @@ -320,7 +319,6 @@ attendanceLines.forEach(line => { groupedLines[dateStr] = { create_date: dateStr, worked_hours: workedHours, - working_hours: `${Math.floor(workedHours)}h ${Math.round((workedHours - Math.floor(workedHours)) * 60)}m`, check_in: checkInStr, check_out: checkOutStr, earliestCheckIn: checkIn, @@ -347,7 +345,6 @@ attendanceLines.forEach(line => { const groupedAttendance = Object.values(groupedLines).map(line => ({ create_date: line.create_date, worked_hours: line.worked_hours.toFixed(2), - working_hours :line.working_hours, check_in: line.check_in, check_out: line.check_out })); diff --git a/addons_extensions/hr_emp_dashboard/static/src/xml/employee_profile_template.xml b/addons_extensions/hr_emp_dashboard/static/src/xml/employee_profile_template.xml index 98823058d..3fcad56b0 100644 --- a/addons_extensions/hr_emp_dashboard/static/src/xml/employee_profile_template.xml +++ b/addons_extensions/hr_emp_dashboard/static/src/xml/employee_profile_template.xml @@ -219,7 +219,7 @@ - +