<?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>
        <menuitem name="Frontdesk" parent="menu_hotel"
          sequence="20" icon="hotel-frontdesk" id="menu_hotel_frontdesk"/>

        <record model="ir.ui.view" id="folio_charge_view_tree">
            <field name="model">hotel.folio.charge</field>
            <field name="type">tree</field>
            <field name="name">folio_charge_tree</field>
        </record>
        <record model="ir.ui.view" id="folio_charge_view_form">
            <field name="model">hotel.folio.charge</field>
            <field name="type">form</field>
            <field name="name">folio_charge_form</field>
        </record>

        <record model="ir.action.report" id="report_folio">
            <field name="name">Folio Statement</field>
            <field name="model">hotel.folio</field>
            <field name="report_name">hotel.folio</field>
            <field name="report">hotel/folio.fodt</field>
            <field name="extension">pdf</field>
        </record>
        <record model="ir.action.keyword" id="report_folio_keyword">
            <field name="keyword">form_print</field>
            <field name="model">hotel.folio,-1</field>
            <field name="action" ref="report_folio"/>
        </record>

        <record model="ir.ui.view" id="board_folio_view_tree">
            <field name="model">hotel.folio</field>
            <field name="type">tree</field>
            <field name="name">board_folio_tree</field>
        </record>
        <record model="ir.ui.view" id="board_folio_view_form">
            <field name="model">hotel.folio</field>
            <field name="type">form</field>
            <field name="name">board_folio_form</field>
        </record>
        <record model="ir.action.act_window" id="act_frontdesk_folio_view">
            <field name="name">Folios</field>
            <field name="res_model">hotel.folio</field>
        </record>
        <record model="ir.action.act_window.view" id="act_hotel_board_folio_tree_view">
            <field name="sequence" eval="1"/>
            <field name="view" ref="board_folio_view_tree"/>
            <field name="act_window" ref="act_frontdesk_folio_view"/>
        </record>
        <record model="ir.action.act_window.view" id="act_hotel_board_folio_form_view">
            <field name="sequence" eval="2"/>
            <field name="view" ref="board_folio_view_form"/>
            <field name="act_window" ref="act_frontdesk_folio_view"/>
        </record>
        <menuitem parent="menu_hotel_frontdesk" sequence="10"
            action="act_frontdesk_folio_view" id="menu_hotel_frontdesk_folio"/>

        <record model="ir.action.act_window.domain" id="act_guest_moves_form_domain_arriving_today">
            <field name="name">Arriving Today</field>
            <field name="sequence" eval="50"/>
            <field name="domain" eval="[
                ('arrival_date', '=', Date()),
                ('registration_state', 'in', ['pending', None]),
              ]" pyson="1"/>
            <field name="act_window" ref="act_frontdesk_folio_view"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_guest_moves_form_domain_leaving_today">
            <field name="name">Leaving Today</field>
            <field name="sequence" eval="70"/>
            <field name="domain" eval="[
                  ('departure_date', '=', Date()),
                  ('registration_state', '=', 'check_in'),
                ]" pyson="1"/>
            <field name="act_window" ref="act_frontdesk_folio_view"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_guest_moves_form_domain_no_show_today">
            <field name="name">No Show Today</field>
            <field name="sequence" eval="90"/>
            <field name="domain" eval="[
                ('arrival_date', '=', Date()),
                ('registration_state', 'in', ['no_show']),
                ]" pyson="1"/>
            <field name="act_window" ref="act_frontdesk_folio_view"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_guest_moves_form_domain_present">
            <field name="name">Present</field>
            <field name="sequence" eval="90"/>
            <field name="domain" eval="[
                  ('registration_state', 'in', ['check_in']),
                ]" pyson="1"/>
            <field name="act_window" ref="act_frontdesk_folio_view"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_guest_moves_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_frontdesk_folio_view"/>
        </record>

        <record model="ir.action.report" id="report_registration_card">
            <field name="name">Registration Card</field>
            <field name="model">hotel.folio</field>
            <field name="report_name">hotel.folio.registration_card</field>
            <field name="report">hotel/registration_card.fodt</field>
            <field name="template_extension">odt</field>
        </record>
        <record model="ir.action.keyword" id="report_registration_card_keyword">
            <field name="keyword">form_print</field>
            <field name="model">hotel.folio,-1</field>
            <field name="action" ref="report_registration_card"/>
        </record>

        <record model="ir.ui.view" id="open_migration_start_view_form">
            <field name="model">hotel.open_migration.start</field>
            <field name="type">form</field>
            <field name="name">open_migration_form</field>
        </record>
        <record model="ir.action.wizard" id="act_open_migration">
            <field name="name">Open Migration Report</field>
            <field name="wiz_name">hotel.open_migration</field>
        </record>
        <record model="ir.action.report" id="report_migration">
            <field name="name">Migration Report</field>
            <field name="model"></field>
            <field name="report_name">hotel.migration</field>
            <field name="report">hotel/migration_report.fods</field>
            <field name="template_extension">ods</field>
        </record>
        <menuitem name="Migration Report" sequence="60" parent="menu_reporting"
            id="menu_migration_report" action="act_open_migration"/>

        <record model="ir.action.wizard" id="act_folio_reverse_checkout">
            <field name="name">Reverse Check Out</field>
            <field name="wiz_name">hotel.folio.reverse_checkout</field>
        </record>
        <record model="ir.action.keyword" id="action_folio_reverse_checkout_keyword">
            <field name="keyword">form_action</field>
            <field name="model">hotel.folio,-1</field>
            <field name="action" ref="act_folio_reverse_checkout"/>
        </record>

        <record model="ir.model.access" id="access_hotel_folio">
            <field name="model" search="[('model', '=', 'hotel.folio')]"/>
            <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_hotel_folio_group_hotel">
            <field name="model" search="[('model', '=', 'hotel.folio')]"/>
            <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_hotel_folio_group_hotel_frontdesk">
            <field name="model" search="[('model', '=', 'hotel.folio')]"/>
            <field name="group" ref="group_hotel_frontdesk"/>
            <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>
        <record model="ir.model.access" id="access_hotel_folio_group_hotel_admin">
            <field name="model" search="[('model', '=', 'hotel.folio')]"/>
            <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>

        <record model="ir.ui.view" id="folio_occupancy_view_tree">
            <field name="model">hotel.folio.occupancy</field>
            <field name="type">tree</field>
            <field name="name">folio_occupancy_tree</field>
        </record>
        <record model="ir.ui.view" id="folio_occupancy_view_form">
            <field name="model">hotel.folio.occupancy</field>
            <field name="type">form</field>
            <field name="name">folio_occupancy_form</field>
        </record>

        <record model="ir.ui.view" id="folio_update_occupancy_view_form">
            <field name="model">hotel.folio_update_occupancy.start</field>
            <field name="type">form</field>
            <field name="name">folio_update_occupancy_start_form</field>
        </record>
        <record model="ir.action.wizard" id="act_folio_update_occupancy">
            <field name="name">Folio Update</field>
            <field name="wiz_name">hotel.folio_update_occupancy</field>
        </record>
        <record model="ir.action.keyword" id="action_folio_update_occupancy_keyword">
            <field name="keyword">form_action</field>
            <field name="model">hotel.folio,-1</field>
            <field name="action" ref="act_folio_update_occupancy"/>
        </record>

        <record model="ir.action.report" id="report_folio_audit">
            <field name="name">Folio Audit Report</field>
            <field name="model"></field>
            <field name="report_name">hotel.folio_audit.report</field>
            <field name="report">hotel/folio_audit.fods</field>
            <field name="template_extension">ods</field>
        </record>
        <record model="ir.ui.view" id="print_folio_audit_start_view_form">
            <field name="model">hotel.folio_audit.start</field>
            <field name="type">form</field>
            <field name="name">folio_audit_start_form</field>
        </record>
        <record model="ir.action.wizard" id="wizard_folio_audit">
            <field name="name">Folio Audit Report</field>
            <field name="wiz_name">hotel.folio_audit</field>
        </record>
        <menuitem parent="hotel.menu_reporting" id="menu_folio_audit"
            action="wizard_folio_audit"/>

    </data>
</tryton>
