<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record model="ir.ui.view" id="app_view_picking_type_group_tree">
        <field name="name">Picking types group</field>
        <field name="model">stock.picking.type.group</field>
        <field name="arch" type="xml">
            <tree string="Picking Types Group">
                <field name="sequence" widget="handle"/>
                <field name="name"/>
                <field name="active" invisible="1"/>
            </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="app_view_picking_type_group_form">
        <field name="name">Picking types group</field>
        <field name="model">stock.picking.type.group</field>
        <field name="arch" type="xml">
            <form string="Picking Types Group">
                <sheet>
                    <div class="oe_button_box" name="button_box">
                        <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive">
                            <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/>
                        </button>
                    </div>
                    <group>
                        <group>
                            <field name="name"/>
                            <field name="sequence"/>
                        </group>
                        <group>
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="action_picking_type_group_list" model="ir.actions.act_window">
        <field name="name">All Picking Types Group</field>
        <field name="res_model">stock.picking.type.group</field>
        <field name="type">ir.actions.act_window</field>
        <field name="view_type">form</field>
        <field name="view_mode">list,form</field>
        <field name="help" type="html">
            <p class="oe_view_nocontent_create">
                Click to define a new picking type group.
            </p>
        </field>

    </record>

    <menuitem id="menu_pickingtype_group" name="Picking Types Group" parent="stock.menu_warehouse_config" action="action_picking_type_group_list" sequence="4"
              groups="stock.group_stock_multi_locations"/>
</odoo>
