<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="stock_batch_picking_form" model="ir.ui.view">
        <field name="model">stock.picking.batch</field>
        <field name="inherit_id" ref="stock_picking_batch.stock_picking_batch_form" />
        <field name="arch" type="xml">
            <div name="button_box" position="inside">
                <button
                    name="action_barcode_scan"
                    class="oe_stat_button"
                    icon="fa-barcode"
                    type="object"
                    help="Start barcode interface"
                    states="in_progress"
                >
                    <div class="o_form_field o_stat_info">
                        <span class="o_stat_text">Scan barcodes</span>
                    </div>
                </button>
            </div>
        </field>
    </record>
    <record id="stock_picking_batch_kanban" model="ir.ui.view">
        <field name="model">stock.picking.batch</field>
        <field name="inherit_id" ref="stock_picking_batch.stock_picking_batch_kanban" />
        <field name="arch" type="xml">
            <xpath expr="//div[hasclass('oe_kanban_bottom_left')]" position="inside">
                <button
                    name="action_barcode_scan"
                    class="btn btn-secondary"
                    icon="fa-barcode"
                    type="object"
                    help="Start barcode interface"
                    states="in_progress"
                >
                    <i class="fa fa-barcode fa-2x" />
                </button>
            </xpath>
        </field>
    </record>
</odoo>
