<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 Moduon Team S.L.
     License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0) -->
<odoo>
    <record id="hr_contract_view_form" model="ir.ui.view">
        <field name="model">hr.contract</field>
        <field name="inherit_id" ref="hr_contract.hr_contract_view_form" />
        <field name="arch" type="xml">
            <xpath expr="//form/header" position="inside">
                <button
                    name="action_update_overtime"
                    string="Update Overtime"
                    type="object"
                    groups="hr_attendance.group_hr_attendance_user"
                    attrs="{'invisible': [('state', 'not in', ['open', 'close'])]}"
                />
            </xpath>
        </field>
    </record>
</odoo>
