<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <!-- Shift List View -->
    <record id="view_fusion_clock_shift_list" model="ir.ui.view">
        <field name="name">fusion.clock.shift.list</field>
        <field name="model">fusion.clock.shift</field>
        <field name="arch" type="xml">
            <list editable="bottom">
                <field name="sequence" widget="handle"/>
                <field name="name"/>
                <field name="start_time" widget="float_time"/>
                <field name="end_time" widget="float_time"/>
                <field name="break_minutes"/>
                <field name="employee_count"/>
                <field name="company_id" groups="base.group_multi_company"/>
            </list>
        </field>
    </record>

    <!-- Shift Form View -->
    <record id="view_fusion_clock_shift_form" model="ir.ui.view">
        <field name="name">fusion.clock.shift.form</field>
        <field name="model">fusion.clock.shift</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <group>
                        <group>
                            <field name="name"/>
                            <field name="start_time" widget="float_time"/>
                            <field name="end_time" widget="float_time"/>
                            <field name="break_minutes"/>
                        </group>
                        <group>
                            <field name="sequence"/>
                            <field name="active"/>
                            <field name="color" widget="color"/>
                            <field name="company_id" groups="base.group_multi_company"/>
                        </group>
                    </group>
                    <group string="Assigned Employees">
                        <field name="employee_ids" nolabel="1" colspan="2">
                            <list>
                                <field name="name"/>
                                <field name="department_id"/>
                                <field name="job_title"/>
                            </list>
                        </field>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <!-- Shift Action -->
    <record id="action_fusion_clock_shift" model="ir.actions.act_window">
        <field name="name">Shifts</field>
        <field name="res_model">fusion.clock.shift</field>
        <field name="view_mode">list,form</field>
    </record>

</odoo>
