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

    <record id="wamas_ubl_wiz_check_form" model="ir.ui.view">
        <field name="name">wamas.ubl.wiz.check.form</field>
        <field name="model">wamas.ubl.wiz.check</field>
        <field name="arch" type="xml">
            <form string="Check WAMAS File">
                <group>
                    <div class="alert alert-info" role="alert" col="1" colspan="2">
                        This wizard will help you extract data of a WAMAS file into:
                        <ul>
                            <li>WAMAS Type</li>
                            <li>Telegram Type</li>
                            <li>Data</li>
                        </ul>
                        Only supports telegram type(s) bellow:
                        <field name="supported_telegram" readonly="1" />
                    </div>
                </group>
                <group>
                    <field name="wamas_file" filename="wamas_filename" />
                    <field name="wamas_filename" invisible="1" />
                    <field
                        name="output"
                        attrs="{'invisible': [('output', '=', False)], 'readonly':[('output', '!=', False)]}"
                    />
                </group>
                <footer>
                    <button
                        name="btn_check"
                        type="object"
                        class="oe_highlight"
                        string="Check"
                    />
                    <button special="cancel" string="Cancel" class="oe_link" />
                </footer>
            </form>
        </field>
    </record>

    <record id="wamas_ubl_wiz_check_action" model="ir.actions.act_window">
        <field name="name">Check WAMAS File</field>
        <field name="res_model">wamas.ubl.wiz.check</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
        <field name="context">{}</field>
    </record>

</odoo>
