From 7441e0b37263c439f530cd8e7b190b6d202f31b2 Mon Sep 17 00:00:00 2001 From: blackbelts <74664702+eslamtalaat74@users.noreply.github.com> Date: Thu, 29 May 2025 10:27:00 +0300 Subject: [PATCH] land ,port --- .../employee_attendances_report_template.xml | 40 ++++++++++++------- .../wizard/attendances_report_wiz.py | 6 +-- 2 files changed, 28 insertions(+), 18 deletions(-) diff --git a/odex25_hr/attendances/report/employee_attendances_report_template.xml b/odex25_hr/attendances/report/employee_attendances_report_template.xml index f9ee97ff9..79995e2f9 100644 --- a/odex25_hr/attendances/report/employee_attendances_report_template.xml +++ b/odex25_hr/attendances/report/employee_attendances_report_template.xml @@ -472,9 +472,9 @@ font-family: ae_AlMohanad; } - - - + + + @@ -491,32 +491,44 @@ + - + employee.attendance.report Attendance Report qweb-pdf - attendances.general_attendances_report_temp + attendances.general_attendances_report_temp_land - + employee.attendance.report Attendance Report qweb-pdf attendances.general_attendances_report_temp - + diff --git a/odex25_hr/attendances/wizard/attendances_report_wiz.py b/odex25_hr/attendances/wizard/attendances_report_wiz.py index 21a43f4ab..3aa798ba3 100644 --- a/odex25_hr/attendances/wizard/attendances_report_wiz.py +++ b/odex25_hr/attendances/wizard/attendances_report_wiz.py @@ -62,12 +62,10 @@ class AttendancesReport(models.TransientModel): def print_report(self): if not self.employee_ids: raise ValidationError(_("Please select Employees Name")) - if self.print_totals_only == True: - - return self.env.ref("attendances.action_totals_only_attendance_report").report_action(self, data=self._payload()) + return self.env.ref("attendances.action_totals_only_attendance_reportt").report_action(self, data=self._payload()) else: - return self.env.ref("attendances.action_general_attendance_report").report_action(self, data=self._payload()) + return self.env.ref("attendances.action_general_attendance_reportt").report_action(self, data=self._payload())