<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="hr_attendance_view_form" model="ir.ui.view">
        <field name="model">hr.attendance</field>
        <field name="inherit_id" ref="hr_attendance.hr_attendance_view_form" />
        <field name="arch" type="xml">
            <xpath expr="//form/sheet/group" position="after">
                <group
                    name="locations"
                    col="2"
                    groups="hr_attendance.group_hr_attendance_manager"
                >
                    <label for="check_in_latitude_text" string="Check-in Location" />
                    <span class="oe_inline">
                        Latitude: <field name="check_in_latitude_text" nolabel="1" /><br
                        />
                        Longitude: <field name="check_in_longitude_text" nolabel="1" />
                    </span>
                    <label for="check_out_latitude_text" string="Check-out Location" />
                    <span class="oe_inline">
                        Latitude: <field
                            name="check_out_latitude_text"
                            nolabel="1"
                        /><br />
                        Longitude: <field name="check_out_longitude_text" nolabel="1" />
                    </span>
                </group>
            </xpath>
        </field>
    </record>
    <record id="view_attendance_tree" model="ir.ui.view">
        <field name="model">hr.attendance</field>
        <field name="inherit_id" ref="hr_attendance.view_attendance_tree" />
        <field name="arch" type="xml">
            <field name="worked_hours" position="after">
                <field
                    name="check_in_latitude_text"
                    groups="hr_attendance.group_hr_attendance_manager"
                    optional="show"
                />
                <field
                    name="check_in_longitude_text"
                    groups="hr_attendance.group_hr_attendance_manager"
                    optional="show"
                />
                <field
                    name="check_out_latitude_text"
                    groups="hr_attendance.group_hr_attendance_manager"
                    optional="show"
                />
                <field
                    name="check_out_longitude_text"
                    groups="hr_attendance.group_hr_attendance_manager"
                    optional="show"
                />
            </field>
        </field>
    </record>
</odoo>
