{
    "name": "Xenoptics Audit Log",
    "version": "19.0.1.4.0",
    "summary": "Generic create/update/delete audit trail, mirroring XENHR's AuditLog + Auditable trait",
    "description": """
Feature-parity addition for the XENHR -> Odoo migration's task #14
(audit log viewer, lowest priority / sequenced last per the migration
plan, but no blockers).

XENHR's `Auditable` trait auto-logs every create/update/delete on any
model that opts in, into a generic `audit_logs` table (table_name,
record_id, action, old_values, new_values, performed_by, ip_address).
Odoo's own chatter/field-tracking (`tracking=True` + mail.thread) covers
created/updated on a per-model basis but does NOT survive record deletion
(the chatter is deleted along with the record) -- so it can't fully stand
in for this.

This module ships `xeno.audit.mixin`, an AbstractModel any model can add
to its `_inherit` list to get the same create/write/unlink hooks XENHR's
trait provides (old/new values for changed fields only, acting user, IP
address when available, survives the audited record's own deletion since
it's a separate model). Wired onto the models that matter most, mirroring
XENHR's own usage of the trait: hr.employee, hr.leave, hr.leave.allocation,
hr.leave.type, xeno.leave.approver, xeno.resignation, and
xeno.attendance.override.

A dedicated Audit Log viewer (list + search, filterable by model/action/
date) is added under Employees > Reporting, restricted to HR
Administrators (hr.group_hr_manager) -- deliberately more restricted than
the hr.group_hr_user level most other HR actions in this migration use,
since the log itself shouldn't be visible to (or alterable by) the same
people whose changes it records. The log is read-only for everyone: no
write or unlink access is granted at all.
""",
    "author": "Xenoptics",
    "license": "LGPL-3",
    "category": "Human Resources",
    "depends": ["hr", "hr_holidays", "xeno_leave", "xeno_resignation", "xeno_attendance", "xeno_theme_slate"],
    "data": [
        "security/ir.model.access.csv",
        "views/audit_log_views.xml",
    ],
    "installable": True,
    "application": False,
}
