This commit is contained in:
Bakry 2025-06-29 15:01:07 +03:00
parent 4321905e84
commit 8c1106aa54
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ class AttendancesReport(models.TransientModel):
# return self.env.ref(report_ref).report_action(self, data=self._payload())
def print_excel_report(self):
if not self.employee_ids:
raise ValidationError(_("Please select Employees Name"))
return self.env.ref("attendances.general_attendance_action_xls").report_action(self, data=self._payload(), config=False)
class ReportAttendancePublic(models.AbstractModel):