<?xml version="1.0"?>
<form string="Working Time">
                <field name="two_weeks_calendar" invisible="1"/>
                <header>
                    <button name="switch_calendar_type" invisible="two_weeks_calendar or flexible_hours" string="Switch to 2 weeks calendar" type="object" confirm="Are you sure you want to switch to a 2-week calendar? All work entries will be lost." confirm-label="Switch"/>
                    <button name="switch_calendar_type" invisible="flexible_hours or not two_weeks_calendar" string="Switch to 1 week calendar" type="object" confirm="Are you sure you want to switch to a 1-week calendar? All work entries will be lost." confirm-label="Switch"/>
                </header>
                <sheet string="Working Time">
                    <widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/>
                    <div class="oe_button_box" name="button_box">
                        <button name="92" type="action" icon="fa-plane" class="oe_stat_button" groups="base.group_no_one">
                                <div class="o_field_widget o_stat_info">
                                    <span class="o_stat_text">Time Off</span>
                                </div>
                        </button>
                        <button name="90" type="action" icon="fa-cogs" class="oe_stat_button" groups="base.group_user">
                                <div class="o_field_widget o_stat_info">
                                    <span class="o_stat_text">
                                        <field name="work_resources_count" string="Work Resources" widget="statinfo"/>
                                    </span>
                                </div>
                        </button>
                    </div>
                    <div class="oe_title">
                        <h1><field name="name"/></h1>
                    </div>
                    <group name="resource_details" col="2">
                        <group name="resource_working_hours">
                            <field name="flexible_hours"/>
                            <label for="full_time_required_hours" invisible="flexible_hours"/>
                            <label for="full_time_required_hours" string="Hours per Week" invisible="not flexible_hours"/>
                            <div>
                                <field name="full_time_required_hours" style="width: 6ch;" widget="float_time"/>
                                <span>hours/week</span>
                            </div>
                            <field name="hours_per_day" widget="float_time" readonly="not flexible_hours"/>
                            <label for="work_time_rate" string="Work Time Rate" invisible="flexible_hours"/>
                            <div invisible="flexible_hours">
                                <field name="work_time_rate" nolabel="1" style="width: 5ch;"/>
                                <span class="ms-1">%</span>
                            </div>
                            <field name="is_fulltime" invisible="1"/>
                        </group>
                        <group name="resource_company">
                            <field name="active" invisible="1"/>
                            <field name="company_id" groups="base.group_multi_company" placeholder="Visible to all"/>
                            <field name="tz" widget="timezone_mismatch" options="{'tz_offset_field': 'tz_offset', 'mismatch_title': 'Timezone Mismatch : This timezone is different from that of your browser.\nPlease, be mindful of this when setting the working hours or the time off.'}"/>
                            <field name="tz_offset" invisible="1"/>
                        </group>
                    </group>
                    <notebook>
                        <page string="Working Hours" name="working_hours" invisible="flexible_hours">
                            <field name="two_weeks_explanation" invisible="not two_weeks_calendar"/>
                            <field name="attendance_ids" widget="section_one2many"/>
                            <group class="oe_subtotal_footer">
                                <label for="hours_per_week" string="Total"/>
                                <div class="d-flex">
                                    <field name="hours_per_week" nolabel="1" widget="float_time"/>
                                    <span class="ms-2">hours/week</span>
                                </div>
                            </group>
                        </page>
                    </notebook>
                </sheet>
            </form>
        