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

    <!--==================================================== Floor ==================================================== -->
    <!-- Form view of hotel floor -->
    <record model="ir.ui.view" id="hotel_floor_view_form">
        <field name="name">hotel.floor.form</field>
        <field name="model">hotel.floor</field>
        <field name="arch" type="xml">
            <form string=" Hotel Ubication">
                <sheet>
                    <group>
                        <field name="name" colspan="1" />
                        <field name="sequence" select="1" />
                        <field name="hotel_ids" widget="many2many_tags"
                                      options="{'no_create': True,'no_open': True}"/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <!-- Tree view of hotel floor -->
    <record model="ir.ui.view" id="hotel_floor_view_tree">
        <field name="name">hotel.floor.tree</field>
        <field name="model">hotel.floor</field>
        <field name="arch" type="xml">
            <tree string=" Hotel Ubications">
                <field name="name" colspan="1" />
                <field name="sequence" select="1" />
            </tree>
        </field>
    </record>

    <!-- Action of hotel floor -->
    <record model="ir.actions.act_window" id="open_hotel_floor_form_tree">
        <field name="name">Floor Structure</field>
        <field name="res_model">hotel.floor</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem name="Ubitacions" id="menu_open_hotel_floor_form_tree"
        action="open_hotel_floor_form_tree" sequence="21"
        parent="hotel.configuration_others" />

</odoo>
