<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>

        <record model="ir.ui.view" id="hotel_maintenance_view_tree">
            <field name="model">hotel.maintenance</field>
            <field name="type">tree</field>
            <field name="name">maintenance_tree</field>
        </record>
        <record model="ir.ui.view" id="hotel_maintenance_view_form">
            <field name="model">hotel.maintenance</field>
            <field name="type">form</field>
            <field name="name">maintenance_form</field>
        </record>
        <record model="ir.action.act_window" id="act_hotel_maintenance_form">
            <field name="name">Maintenance</field>
            <field name="res_model">hotel.maintenance</field>
        </record>
        <record model="ir.action.act_window.view" id="act_maintenance_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="hotel_maintenance_view_tree"/>
            <field name="act_window" ref="act_hotel_maintenance_form"/>
        </record>
        <record model="ir.action.act_window.view" id="act_maintenance_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="hotel_maintenance_view_form"/>
            <field name="act_window" ref="act_hotel_maintenance_form"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_hotel_maintenance_form_domain_draft">
            <field name="name">Draft`</field>
            <field name="sequence" eval="50"/>
            <field name="domain" eval="['OR',
                [('state', '=', 'draft')],
                ]" pyson="1"/>
            <field name="count" eval="True"/>
            <field name="act_window" ref="act_hotel_maintenance_form"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_hotel_maintenance_form_domain_confirmed">
            <field name="name">Confirmed</field>
            <field name="sequence" eval="50"/>
            <field name="domain" eval="['OR',
                [('state', '=', 'confirmed')],
                ]" pyson="1"/>
            <field name="count" eval="True"/>
            <field name="act_window" ref="act_hotel_maintenance_form"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_hotel_maintenance_form_domain_in_progress">
            <field name="name">In Progress</field>
            <field name="sequence" eval="50"/>
            <field name="domain" eval="['OR',
                [('state', '=', 'in_progress')],
                ]" pyson="1"/>
            <field name="count" eval="True"/>
            <field name="act_window" ref="act_hotel_maintenance_form"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_hotel_maintenance_form_domain_all">
            <field name="name">All</field>
            <field name="sequence" eval="90"/>
            <field name="domain" eval="[]" pyson="1"/>
            <field name="act_window" ref="act_hotel_maintenance_form"/>
        </record>
        <menuitem name="Maintenance" parent="hotel.menu_hotel" sequence="80"
            action="act_hotel_maintenance_form" icon="hotel-maintenance"
            id="menu_hotel_maintenance"/>

        <!-- Model Access -->
        <record model="ir.model.access" id="access_maintenance">
            <field name="model" search="[('model', '=', 'hotel.maintenance')]"/>
            <field name="perm_read" eval="False"/>
            <field name="perm_write" eval="False"/>
            <field name="perm_create" eval="False"/>
            <field name="perm_delete" eval="False"/>
        </record>
        <record model="ir.model.access" id="access_maintenance_group_hotel">
            <field name="model" search="[('model', '=', 'hotel.maintenance')]"/>
            <field name="group" ref="group_hotel"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="False"/>
            <field name="perm_create" eval="False"/>
            <field name="perm_delete" eval="False"/>
        </record>
        <record model="ir.model.access" id="access_maintenance_group_hotel_frontdesk">
            <field name="model" search="[('model', '=', 'hotel.maintenance')]"/>
            <field name="group" ref="group_hotel_frontdesk"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="False"/>
            <field name="perm_create" eval="False"/>
            <field name="perm_delete" eval="False"/>
        </record>
        <record model="ir.model.access" id="access_maintenance_group_hotel_admin">
            <field name="model" search="[('model', '=', 'hotel.maintenance')]"/>
            <field name="group" ref="group_hotel_admin"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
            <field name="perm_create" eval="True"/>
            <field name="perm_delete" eval="True"/>
        </record>

        <menuitem name="Wizards" parent="hotel.menu_hotel"
            sequence="80" id="menu_hotel_wizards"/>

        <record model="ir.ui.view" id="hotel_night_audit_view_tree">
            <field name="model">hotel.night_audit</field>
            <field name="type">tree</field>
            <field name="name">night_audit_tree</field>
        </record>
        <record model="ir.ui.view" id="hotel_night_audit_view_form">
            <field name="model">hotel.night_audit</field>
            <field name="type">form</field>
            <field name="name">night_audit_form</field>
        </record>
        <record model="ir.action.act_window" id="act_hotel_night_audit_form">
            <field name="name">Night Audit</field>
            <field name="res_model">hotel.night_audit</field>
        </record>
        <record model="ir.action.act_window.view" id="act_night_audit_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="hotel_night_audit_view_tree"/>
            <field name="act_window" ref="act_hotel_night_audit_form"/>
        </record>
        <record model="ir.action.act_window.view" id="act_night_audit_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="hotel_night_audit_view_form"/>
            <field name="act_window" ref="act_hotel_night_audit_form"/>
            </record>
        <menuitem name="Night Audit" parent="hotel.menu_hotel_wizards"
            sequence="10" action="act_hotel_night_audit_form"
            id="menu_hotel_night"/>

        <record model="ir.ui.view" id="night_audit_start_view_form">
          <field name="model">hotel.night_audit.start</field>
          <field name="type">form</field>
          <field name="name">night_audit_start_form</field>
        </record>
        <record model="ir.action.wizard" id="act_hotel_night_audit_wizard">
          <field name="name">Night Audit</field>
          <field name="wiz_name">hotel.night_audit.wizard</field>
        </record>
        <menuitem name="Night Audit" parent="hotel.menu_hotel_wizards"
            sequence="10" action="act_hotel_night_audit_wizard"
            id="menu_hotel_night_audit"/>

    </data>
</tryton>
