Abwesenheits-Modul abgerundet (Feature-Parität mit Urlaubsverwaltung):
- Vertretung: Overlap-Warnung beim Anlegen, E-Mail an Vertretung bei
Genehmigung, GET /absences/?as_substitute=true, neuer schlanker
GET /users/colleagues (alle Rollen, RLS-gefenced) für die Auswahl;
Vertreter-Dropdown + Anzeige in der Liste.
- Stornierung mit Re-Genehmigung: neuer Status CANCELLATION_REQUESTED,
POST /absences/{id}/request-cancellation; Manager genehmigt/lehnt über
bestehende approve/reject ab (Urlaub + FZA-Rückbuchung via _apply_cancellation).
- Kommentare: Model AbsenceComment (company_id-RLS), GET/POST comments,
System-Kommentare bei Statuswechsel, AbsenceCommentsModal.
- Fix: CalDAV fire-and-forget nutzte die Request-Session weiter (in Tests
geteilt -> "another operation in progress"); jetzt sync_*_bg mit eigener
Session + RLS-Bypass.
Migration 0035. 178/178 Tests grün. Deployed auf 137 + 164.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
46 lines
1.4 KiB
Python
46 lines
1.4 KiB
Python
from app.models.company import Company
|
|
from app.models.department import Department
|
|
from app.models.user import User, UserRole
|
|
from app.models.session import Session
|
|
from app.models.password_reset import PasswordReset
|
|
from app.models.audit_log import AuditLog
|
|
from app.models.work_schedule import WorkSchedule
|
|
from app.models.time_entry import TimeEntry, EntryStatus, EntrySource
|
|
from app.models.absence_type import AbsenceType
|
|
from app.models.absence import Absence, AbsenceStatus
|
|
from app.models.absence_comment import AbsenceComment
|
|
from app.models.vacation_balance import VacationBalance
|
|
from app.models.overtime_balance import OvertimeBalance
|
|
from app.models.public_holiday import PublicHoliday
|
|
from app.models.smtp_config import SmtpConfig
|
|
from app.models.caldav_config import CaldavCompanyConfig, CaldavUserConfig
|
|
from app.models.kiosk_device import KioskDevice, KioskAuthMethod
|
|
from app.models.special_assignment import SpecialAssignment, AssignmentMode
|
|
from app.models.hours_payout import HoursPayout
|
|
|
|
__all__ = [
|
|
"Company",
|
|
"Department",
|
|
"User",
|
|
"UserRole",
|
|
"Session",
|
|
"PasswordReset",
|
|
"AuditLog",
|
|
"WorkSchedule",
|
|
"TimeEntry",
|
|
"EntryStatus",
|
|
"EntrySource",
|
|
"AbsenceType",
|
|
"Absence",
|
|
"AbsenceStatus",
|
|
"AbsenceComment",
|
|
"VacationBalance",
|
|
"OvertimeBalance",
|
|
"PublicHoliday",
|
|
"KioskDevice",
|
|
"KioskAuthMethod",
|
|
"SpecialAssignment",
|
|
"AssignmentMode",
|
|
"HoursPayout",
|
|
]
|