From 56116acc0fcce6c6b6c4519caf3f251fff136d3c Mon Sep 17 00:00:00 2001 From: Emanuel Kagombora Date: Thu, 11 Jun 2026 15:33:31 +0300 Subject: [PATCH] fix: create overtime threshold fields on install/migrate Add attendance_overtime_calculation_custom_fields to after_install and after_migrate hooks so the Shift Type overtime fields get created. Fresh installs skip patches, so they never ran otherwise. --- csf_tz/hooks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/csf_tz/hooks.py b/csf_tz/hooks.py index 6c5a07b9..51973287 100755 --- a/csf_tz/hooks.py +++ b/csf_tz/hooks.py @@ -116,6 +116,7 @@ "csf_tz.patches.custom_fields.create_custom_fields_for_additional_salary.execute", "csf_tz.patches.custom_fields.payroll_approval_custom_fields.execute", "csf_tz.patches.custom_fields.vfd_providers_updated_custom_fields.execute", + "csf_tz.patches.custom_fields.attendance_overtime_calculation_custom_fields.execute", "csf_tz.patches.migrate_vfd_providers_to_csf_tz.execute", "csf_tz.utils.create_custom_fields.execute", "csf_tz.utils.create_property_setter.execute", @@ -127,6 +128,7 @@ "csf_tz.utils.create_property_setter.execute", "csf_tz.patches.update_payware_settings_values_to_csf_tz_settings.execute", "csf_tz.patches.custom_fields.vfd_providers_updated_custom_fields.execute", + "csf_tz.patches.custom_fields.attendance_overtime_calculation_custom_fields.execute", "csf_tz.patches.migrate_vfd_providers_to_csf_tz.execute", ]