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

    <!--==================================================== Board Services ==================================================== -->
    <!-- Form view of hotel board service -->
    <record model="ir.ui.view" id="hotel_board_service_form">
        <field name="name">hotel.board.service.form</field>
        <field name="model">hotel.board.service</field>
        <field name="arch" type="xml">
            <form string="Board Service Line">
                <group>
                   <field name="name" />
                   <field name="hotel_ids" widget="many2many_tags"
                        options="{'no_create': True,'no_open': True}"/>
                    <field name="amount"/>
                    <field name="board_service_line_ids">
                        <tree editable="bottom">
                            <field name="product_id"/>
                            <field name="amount" />
                        </tree>
                    </field>
                </group>
            </form>
        </field>
    </record>

    <!-- Tree view of hotel floor -->
    <record model="ir.ui.view" id="hotel_board_service_view_tree">
        <field name="name">hotel.board.service.tree</field>
        <field name="model">hotel.board.service</field>
        <field name="arch" type="xml">
            <tree string="Hotel Board Services">
                <field name="name" />
                <field name="amount" />
            </tree>
        </field>
    </record>

    <!-- Action of hotel floor -->
    <record model="ir.actions.act_window" id="open_hotel_board_service_form_tree">
        <field name="name">Board Services</field>
        <field name="res_model">hotel.board.service</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem name="Board Services" id="menu_open_hotel_board_service_form_tree"
        action="open_hotel_board_service_form_tree" sequence="25"
        parent="hotel.configuration_others" />

</odoo>
