<?xml version="1.0"?>
    <openerp>
        <data>

            <act_window
                id="action_ine_download"
                name="I.N.E. File Download"
                res_model="ine.wizard"
                view_mode="form"
            />

            <record id="view_ine_download" model="ir.ui.view">
                <field name="name">INE File Download</field>
                <field name="model">ine.wizard</field>
                <field name="arch" type="xml">
                    <form>
                        <sheet>
                            <group string="Generar estadistica para el I.N.E." colspan="1">
                                    <field name="ine_year" style="width:110px;"/>
                                    <field name="ine_month" style="width:110px"/>
                            </group>
                            <div>
                            <button name="generate_file" class="oe_form_button_save btn btn-primary btn-sm" type="object" string="Generate file"/>
                                <field name="txt_filename" invisible="1"/>
                                <field name="txt_binary" filename="txt_filename" readonly="1" style="margin-left: 20px;font-size: large;"/>
                            </div>
                            <separator string="ADR y RevPar"/>
                            <group>
                                <div>
                                    <field name="adr_screen" style="font-size: large;" readonly="1"/>
                                    <field name="rev_screen" style="font-size: large;" class="oe_title" readonly="1"/>
                                </div>
                            </group>
                            <group>
                              <div><!-- site-exportine -->
                                <p>Abrir web del I.N.E.: <a href="https://arce.ine.es/ARCE/jsp/encuestaXml.jsp" target="_blank">Presentar encuesta I.N.E. <i class="fa fa-signal"></i></a></p>
                              </div>
                            </group>
                        </sheet>
                    </form>
                </field>
            </record>

            <menuitem
                id="menu_ine_download"
                name="INE File Download"
                parent="hotel.hotel_reports_menu"
                sequence="37"
                action="action_ine_download"
            />

        </data>

    </openerp>
