From 1691056468728ea382c2fc89be5b954cfe7c49d0 Mon Sep 17 00:00:00 2001 From: younes Date: Tue, 15 Jul 2025 11:44:21 +0100 Subject: [PATCH] restrict check-in outside allowed working hours --- odex25_hr/attendances/i18n/ar_001.po | 12 +----------- odex25_hr/attendances/models/hr_attendance.py | 2 -- odex25_hr/attendances/views/hr_attendance_view.xml | 8 +------- 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/odex25_hr/attendances/i18n/ar_001.po b/odex25_hr/attendances/i18n/ar_001.po index fc74b3c58..fae51a1aa 100644 --- a/odex25_hr/attendances/i18n/ar_001.po +++ b/odex25_hr/attendances/i18n/ar_001.po @@ -2809,14 +2809,4 @@ msgstr "" #. module: attendances #: model_terms:ir.ui.view,arch_db:attendances.late_attendance_report_template msgid "وقت الدخول" -msgstr "" - -#. module: attendances -#: model:ir.model.fields,field_description:attendances.field_resource_calendar__grace_hour_before_work -msgid "Grace Hours Before Work" -msgstr "ساعات السماحية قبل الدوم" - -#. module: attendances -#: model:ir.model.fields,field_description:attendances.field_resource_calendar__grace_hour_after_work -msgid "Grace Hours After Work" -msgstr "ساعات السماحية بعد الدوام" \ No newline at end of file +msgstr "" \ No newline at end of file diff --git a/odex25_hr/attendances/models/hr_attendance.py b/odex25_hr/attendances/models/hr_attendance.py index 889d39ebb..06886bb90 100644 --- a/odex25_hr/attendances/models/hr_attendance.py +++ b/odex25_hr/attendances/models/hr_attendance.py @@ -89,8 +89,6 @@ class HrAttendances(models.Model): full_end_sign_in = fields.Float(string='End Sign In') full_start_sign_out = fields.Float(string='Start Sign Out') full_end_sign_out = fields.Float(string='End Sign Out') - grace_hour_before_work = fields.Float(string="Grace Hours Before Work") - grace_hour_after_work = fields.Float(string="Grace Hours After Work") working_hours = fields.Float(string='Working Hours') working_days = fields.Integer(string='Working Days') break_duration = fields.Float("Break Duration", default=0.0) diff --git a/odex25_hr/attendances/views/hr_attendance_view.xml b/odex25_hr/attendances/views/hr_attendance_view.xml index ad66ea883..d9cfc10c0 100644 --- a/odex25_hr/attendances/views/hr_attendance_view.xml +++ b/odex25_hr/attendances/views/hr_attendance_view.xml @@ -68,7 +68,7 @@ 'invisible':[('is_full_day','=',False)], 'readonly': [('state', '!=', 'draft')]}"/> - + - - - - - -