feat(fusion_clock): settings UI for generation horizon + self-unassign; open-shift in backend views [C1]

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-06-04 21:14:03 -04:00
parent 2ad94070c7
commit 0cb30f256d
3 changed files with 31 additions and 1 deletions

View File

@@ -245,6 +245,19 @@ class ResConfigSettings(models.TransientModel):
help="Which clock location is bound to the NFC kiosk for this company. "
"Required when the kiosk is enabled.",
)
fclk_planning_generation_months = fields.Integer(
related='company_id.fclk_planning_generation_months',
readonly=False,
string='Schedule Generation Horizon (months)',
help="How many months ahead recurring shifts are pre-generated.",
)
fclk_self_unassign_days_before = fields.Integer(
related='company_id.fclk_self_unassign_days_before',
readonly=False,
string='Self-Unassign Cutoff (days before shift)',
help="Employees may release an open shift they claimed up to this many "
"days before it starts.",
)
fclk_photo_retention_days = fields.Integer(
string='Auto-Wipe Photos After (days)',
config_parameter='fusion_clock.photo_retention_days',