Merge pull request #3888 from expsa/ky_dev_odex25_hr

restrict check-in outside allowed working hours
This commit is contained in:
kchyounes19 2025-07-13 15:08:58 +01:00 committed by GitHub
commit 7d10b06476
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 3 deletions

View File

@ -67,8 +67,6 @@
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"
@ -79,7 +77,13 @@
attrs="{'required':[('is_full_day','=',True)],
'invisible':[('is_full_day','=',False)],
'readonly': [('state', '!=', 'draft')]}"/>
<field name="grace_hour_after_work" widget="float_time"
</group>
<group colspan="2">
<field name="grace_hour_before_work" widget="float_time"
attrs="{'readonly': [('state', '!=', 'draft')]}"/>
</group>
<group colspan="2">
<field name="grace_hour_after_work" widget="float_time"
attrs="{'readonly': [('state', '!=', 'draft')]}"/>
</group>
</group>