restrict check-in outside allowed working hours

This commit is contained in:
younes 2025-07-13 15:06:38 +01:00
parent 20eb2d292d
commit a1a3f24382
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>