<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="hr_work_location_tree_view" model="ir.ui.view">
            <field name="name">hr.work.location.view.tree</field>
            <field name="model">hr.work.location</field>
            <field name="arch" type="xml">
                <tree string="Work Location">
                    <field name="active" column_invisible="True" />
                    <field name="name" />
                    <field class="o_homework_icon_types d-flex flex-wrap" name="location_type"
                           widget="hr_homeworking_radio_image" options="{'horizontal': true}"/>
                    <field name="company_id" groups="base.group_multi_company" />
                </tree>
            </field>
        </record>
        <record id="hr_work_location_form_view" model="ir.ui.view">
            <field name="name">hr.work.location.view.form</field>
            <field name="model">hr.work.location</field>
            <field name="arch" type="xml">
                <form string="Work Location">
                    <sheet>
                        <group>
                            <group>
                                <field name="active" invisible="1" />
                                <field name="name" />
                                <field name="address_id" />
                                <field class="o_homework_icon_types d-flex flex-wrap" name="location_type"
                                       widget="hr_homeworking_radio_image" options="{'horizontal': true}"/>
                            </group>
                            <group>
                                <field name="company_id" groups="base.group_multi_company" />
                                <field name="company_id" groups="!base.group_multi_company" invisible="1" />
                            </group>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>
        <record id="hr_work_location_action" model="ir.actions.act_window">
            <field name="name">Work Locations</field>
            <field name="res_model">hr.work.location</field>
            <field name="view_mode">tree,form</field>
            <field name="help" type="html">
                <p class="o_view_nocontent_smiling_face">
                    Create a new work location
                </p>
            </field>
        </record>
    </data>
</odoo>
