Merge pull request #3881 from expsa/ky_dev_odex25_hr

Ky dev odex25 hr
This commit is contained in:
kchyounes19 2025-07-13 14:32:37 +01:00 committed by GitHub
commit f152841d07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 0 deletions

View File

@ -2810,3 +2810,13 @@ msgstr ""
#: 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 "ساعات السماحية بعد الدوام"

View File

@ -89,6 +89,8 @@ 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)

View File

@ -67,6 +67,8 @@
attrs="{'required':[('is_full_day','=',True)],
'invisible':[('is_full_day','=',False)],
'readonly': [('state', '!=', 'draft')]}"/>
<field name="grace_hour_before_work" widget="float_time"
attrs="{'readonly': [('state', '!=', 'draft')]}"/>
</group>
<group string="Sign Out Period" attrs="{'invisible':[('is_full_day','=',False)]}" colspan="2">
<field name="full_min_sign_out" widget="float_time"
@ -77,6 +79,8 @@
attrs="{'required':[('is_full_day','=',True)],
'invisible':[('is_full_day','=',False)],
'readonly': [('state', '!=', 'draft')]}"/>
<field name="grace_hour_after_work" widget="float_time"
attrs="{'readonly': [('state', '!=', 'draft')]}"/>
</group>
</group>
<!--<group col="4" colspan="4">