{
    "name": "Xenoptics Foreigner Details & Expiry Alerts",
    "version": "19.0.1.1.0",
    "summary": "XENHR employee_foreigner_details parity: passport/visa metadata "
               "+ windowed expiry alerts for visa, passport and work permit",
    "description": """
Migration target for XENHR's employee_foreigner_details table (Thai
foreign-worker compliance). Core Odoo 19 already stores passport no/expiry
(hr.version), visa no/expiry and work permit no/expiry (hr.employee); this
module adds the three metadata fields core lacks (passport issue place,
passport issue date, visa issue date) and fixes alerting:

- Core only alerts on work-permit expiry, and only when the expiry date is
  EXACTLY today + notice period — an employee whose date is imported already
  inside the window is never alerted. This module overrides
  notify_expiring_contract_work_permit (same daily cron) with windowed
  once-per-date checks and extends them to visa and passport expiry.
- Notice period reused from Settings: work_permit_expiration_notice_period
  (default 60 days). Activities go to the employee's HR Responsible, falling
  back to the cron user — set HR Responsible on foreign employees.
""",
    "author": "Xenoptics",
    "license": "LGPL-3",
    "category": "Human Resources/Employees",
    "depends": ["hr"],
    "data": [
        "views/hr_employee_views.xml",
    ],
    "installable": True,
    "application": False,
}
