[FIX] LEAVE: Past leave restriction error when employee creating leave request
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
from leave.models import EmployeePastLeaveRestrict
|
||||
|
||||
enabled_restriction = EmployeePastLeaveRestrict.objects.first()
|
||||
if not enabled_restriction:
|
||||
enabled_restriction = EmployeePastLeaveRestrict.objects.create(enabled=True)
|
||||
|
||||
Reference in New Issue
Block a user