<?xml version="1.0" ?>
<odoo>
    <record id="view_cubiscan_wizard" model="ir.ui.view">
        <field name="name">cubiscan.wizard.form</field>
        <field name="model">cubiscan.wizard</field>
        <field name="arch" type="xml">
            <form class="cubiscan_wizard">
                <header>
                    <button
                        name="action_reopen_fullscreen"
                        string="Fullscreen"
                        type="object"
                    />
                </header>
                <group>
                    <group>
                        <label for="device_id" />
                        <field
                            name="device_id"
                            nolabel="1"
                            options="{'no_open': True, 'no_create_edit': True}"
                        />
                        <label for="product_id" />
                        <field
                            name="product_id"
                            nolabel="1"
                            options="{'no_open': True, 'no_create_edit': True}"
                        />
                        <field
                            name="_barcode_scanned"
                            widget="barcode_handler"
                            invisible="1"
                        />
                    </group>
                    <group />
                </group>
                <separator />
                <field name="line_ids">
                    <tree editable="bottom" create="0" delete="0">
                        <field name="sequence" invisible="1" />
                        <field name="required" invisible="1" />
                        <field name="name" />
                        <field name="qty" />
                        <field
                            name="max_weight"
                            options="{'bg_color': 'lightcoral: max_weight == 0.0 and required'}"
                        />
                        <field
                            name="lngth"
                            options="{'bg_color': 'lightcoral: lngth == 0.0 and required'}"
                        />
                        <field
                            name="width"
                            options="{'bg_color': 'lightcoral: width == 0.0 and required'}"
                        />
                        <field
                            name="height"
                            options="{'bg_color': 'lightcoral: height == 0.0 and required'}"
                        />
                        <field
                            name="volume"
                            options="{'bg_color': 'lightcoral: volume == 0.0 and required'}"
                        />
                        <button
                            name="cubiscan_measure"
                            type="object"
                            string="CubiScan"
                            class="btn btn-warning"
                        />
                        <field name="barcode" />
                    </tree>
                </field>
                <footer>
                    <button
                        name="action_save"
                        type="object"
                        icon="fa-check"
                        class="btn btn-primary"
                        string="Save"
                    />
                    <button
                        name="action_close"
                        type="object"
                        icon="fa-times"
                        class="btn btn-danger"
                        string="Close"
                    />
                </footer>
            </form>
        </field>
    </record>
</odoo>
