<?xml version="1.0" ?>
<!--
    Copyright 2017-2020 ForgeFlow, S.L.
    Copyright 2017 Creu Blanca
    License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
-->
<odoo>
    <record id="wizard_stock_request_kanban_form" model="ir.ui.view">
        <field name="name">wizard.stock.request.kanban.form</field>
        <field name="model">wizard.stock.request.kanban</field>
        <field name="arch" type="xml">
            <form string="Add Kanban">
                <div
                    class="alert alert-success text-center o_form_header"
                    role="alert"
                    style="margin-bottom:0px;"
                    attrs="{'invisible':[('status_state', '!=', 0)]}"
                >
                    <bold>
                        <field name="status" />
                    </bold>
                </div>
                <div
                    class="alert alert-danger alert-dismissable text-center"
                    role="alert"
                    style="margin-bottom:0px;"
                    attrs="{'invisible':[('status_state', '=', 0)]}"
                >
                    <bold>
                        <field name="status" />
                    </bold>
                </div>
                <field name="status_state" invisible="1" />
                <field name="kanban_id" invisible="1" />
                <field name="stock_request_id" invisible="1" />
                <field name="_barcode_scanned" widget="barcode_handler" />
                <footer>
                    <button
                        name="action_cancel"
                        string="Close"
                        class="oe_link"
                        special="cancel"
                    />
                </footer>
            </form>
        </field>
    </record>
    <record id="wizard_stock_request_kanban_action" model="ir.actions.act_window">
        <field name="name">Add Kanban</field>
        <field name="res_model">wizard.stock.request.kanban</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>
</odoo>
