diff --git a/odex25_hr/attendances/wizard/attendances_report_wiz.py b/odex25_hr/attendances/wizard/attendances_report_wiz.py index f0bef33bd..e5a4560d0 100644 --- a/odex25_hr/attendances/wizard/attendances_report_wiz.py +++ b/odex25_hr/attendances/wizard/attendances_report_wiz.py @@ -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): diff --git a/odex25_hr/hr_holidays_public/i18n/ar_001.po b/odex25_hr/hr_holidays_public/i18n/ar_001.po index 51f9be53e..c21592c59 100644 --- a/odex25_hr/hr_holidays_public/i18n/ar_001.po +++ b/odex25_hr/hr_holidays_public/i18n/ar_001.po @@ -732,6 +732,7 @@ msgstr "الإدارات المفوضة" #: model_terms:ir.ui.view,arch_db:hr_holidays_public.public_leave_cost_report #: model_terms:ir.ui.view,arch_db:hr_holidays_public.specified_leave_report_template #: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_hr_holidays_filter2 +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.leaves_balance_tree_view #, python-format msgid "Department" msgstr "الهيكل الإداري" @@ -943,6 +944,7 @@ msgstr "نوع الموظف" #. module: hr_holidays_public #: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays__emp_number +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.leaves_balance_tree_view msgid "Employee number" msgstr "رقم الموظف" diff --git a/odex25_hr/hr_holidays_public/views/leaves_balance.xml b/odex25_hr/hr_holidays_public/views/leaves_balance.xml index da5141efc..19d056444 100644 --- a/odex25_hr/hr_holidays_public/views/leaves_balance.xml +++ b/odex25_hr/hr_holidays_public/views/leaves_balance.xml @@ -112,9 +112,9 @@ hr.holidays + - - +