fix
This commit is contained in:
parent
4321905e84
commit
8c1106aa54
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue