Merge pull request #3917 from expsa/ky_dev_odex25_hr
restrict check-in outside allowed working hours
This commit is contained in:
commit
f730368062
|
|
@ -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 "ساعات السماحية بعد الدوام"
|
||||
msgstr ""
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@
|
|||
'invisible':[('is_full_day','=',False)],
|
||||
'readonly': [('state', '!=', 'draft')]}"/>
|
||||
</group>
|
||||
<group string="Sign Out Period" attrs="{'invisible':[('is_full_day','=',False)]}" colspan="2">
|
||||
<group string="Sign Out Period" id="sign_out_period" attrs="{'invisible':[('is_full_day','=',False)]}" colspan="2">
|
||||
<field name="full_min_sign_out" widget="float_time"
|
||||
attrs="{'required':[('is_full_day','=',True)],
|
||||
'invisible':[('is_full_day','=',False)],
|
||||
|
|
@ -78,12 +78,6 @@
|
|||
'invisible':[('is_full_day','=',False)],
|
||||
'readonly': [('state', '!=', 'draft')]}"/>
|
||||
</group>
|
||||
<group colspan="2">
|
||||
<field name="grace_hour_before_work" widget="float_time"/>
|
||||
</group>
|
||||
<group colspan="2">
|
||||
<field name="grace_hour_after_work" widget="float_time"/>
|
||||
</group>
|
||||
</group>
|
||||
<!--<group col="4" colspan="4">
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue