<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 Moduon Team S.L. <info@moduon.team>
     License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). -->
<odoo>

    <record id="hr_employee_timesheet_cost_wizard_view_form" model="ir.ui.view">
        <field name="name">hr_employee_timesheet_cost_wizard.view.form</field>
        <field name="model">hr.employee.timesheet.cost.wizard</field>
        <field name="arch" type="xml">
            <form string="Update Timesheet Cost">
                <sheet>
                    <group>
                        <group>
                            <field name="hourly_cost" string="Cost" />
                        </group>
                        <group>
                            <field name="starting_date" />
                        </group>
                    </group>
                    <group>
                        <field name="comment" />
                    </group>
                </sheet>
                <footer>
                    <button
                        name="update_employee_cost"
                        string="Update"
                        type="object"
                        class="btn-primary"
                        data-hotkey="q"
                    />
                    <button
                        string="Cancel"
                        class="btn-secondary"
                        special="cancel"
                        data-hotkey="z"
                    />
                </footer>
            </form>
        </field>
    </record>

    <record id="action_hr_employee_timesheet_cost_wizard" model="ir.actions.act_window">
        <field name="name">Update Timesheet Cost</field>
        <field name="res_model">hr.employee.timesheet.cost.wizard</field>
        <field name="view_mode">form</field>
        <field name="view_id" ref="hr_employee_timesheet_cost_wizard_view_form" />
        <field name="target">new</field>
    </record>

</odoo>
