<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <!-- Client action embedding /odoo/attendances/myteam in an iframe,
             same pattern as the company-wide Monthly Attendance page. -->
        <record id="action_attendance_myteam_client" model="ir.actions.client">
            <field name="name">My Team Attendance</field>
            <field name="tag">xeno_attendance_myteam</field>
        </record>
    </data>
    <data noupdate="1">
        <!-- Visible to any internal user, unlike the company-wide report;
             access to actual data is gated at runtime by whether the user has
             any xeno.attendance.viewer rows assigned to them. A manager with
             none configured just sees an empty report, not a 403. Nested
             under the standalone "My Attendance" tab (xeno_attendance.
             menu_attendance_my) rather than the native Attendances app's
             Overview, since susu wants regular employees to see only that one
             tab. Overview (and its parent) are Officer/Admin-only again as of
             attendance_my_menu.xml, so anchoring here keeps this reachable
             without resurrecting the native app for everyone. -->
        <menuitem id="menu_attendance_myteam"
                  name="My Team Attendance"
                  parent="menu_attendance_my"
                  action="action_attendance_myteam_client"
                  groups="base.group_user"
                  sequence="1"/>
    </data>
</odoo>
