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

    <!--======================= Hotel Service Type =========================== -->
    <!-- Form view of hotel service type -->
    <record model="ir.ui.view" id="view_hotel_service_type_form">
        <field name="name">hotel.service_type.form</field>
        <field name="model">hotel.service.type</field>
        <field name="arch" type="xml">
            <form string="Service Type">
                <sheet>
                    <group>
                        <field name="name" select="1" string="Service Name" />
                        <!-- <field name="parent_id" domain="[('isservicetype','=',True)]"
                            select="1" /> -->
                        <!-- <field name="isservicetype" invisible="1" /> -->
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <!-- Tree view of hotel service type -->
    <record model="ir.ui.view" id="view_hotel_service_type_tree">
        <field name="name">hotel.service_type.tree</field>
        <field name="model">hotel.service.type</field>
        <field name="arch" type="xml">
            <tree string="Service Type">
                <field name="name" />
            </tree>
        </field>
    </record>

    <!-- Action for hotel service type -->
    <record model="ir.actions.act_window" id="open_hotel_service_type_form_tree">
        <field name="name">Service Type</field>
        <field name="res_model">hotel.service.type</field>
        <!-- <field name="context">{'default_isservicetype':1}</field> -->
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
    </record>
    <menuitem id="menu_hotel_service" name="Services"
        parent="hotel.hotel_configuration_menu" sequence="2" />
    <menuitem name="Service Types" id="menu_open_hotel_service_type_form_tree"
        action="open_hotel_service_type_form_tree" sequence="9"
        parent="hotel.menu_hotel_service" />

</odoo>
