<?xml version="1.0"?>
<form string="Lots/Serial Numbers">
                <sheet>
                <field name="company_id" invisible="1"/>
                <field name="display_complete" invisible="1"/>
                <div class="oe_button_box" name="button_box" attrs="{'invisible': [('display_complete', '=', False)]}">
                        <button class="oe_stat_button" name="action_lot_open_transfers" type="object" icon="fa-truck" help="Transfers" attrs="{'invisible': [('delivery_count', '=', 0)]}">
                            <div class="o_field_widget o_stat_info">
                                <span class="o_stat_value">
                                    <field name="delivery_count" widget="statinfo" nolabel="1" class="mr4"/>
                                </span>
                                <span class="o_stat_text">Transfers</span>
                            </div>
                        </button>                           
                        <button name="action_lot_open_quants" icon="fa-arrows" class="oe_stat_button" string="Location" type="object"/>
                        <button name="507" icon="fa-arrow-up" class="oe_stat_button" string="Traceability" type="action"/>
                </div>
                <div class="oe_title">
                    <label for="name"/>
                    <h1>
                        <field name="name" placeholder="e.g. LOT/0001/20121"/>
                    </h1>
                </div>
                <group name="main_group">
                    <group>
                        <field name="product_id" context="{'default_detailed_type': 'product', 'default_tracking': 'lot'}" readonly="context.get('set_product_readonly', False)" force_save="1" help="Product this lot/serial number contains. You cannot change it anymore if it has already been moved."/>
                        <label for="product_qty" attrs="{'invisible': [('display_complete', '=', False)]}"/>
                        <div class="o_row" attrs="{'invisible': [('display_complete', '=', False)]}">
                            <field name="product_qty"/>
                            <field name="product_uom_id" groups="uom.group_uom"/>
                        </div>
                        <field name="ref"/>
                        <field name="company_id" groups="base.group_multi_company"/>
                    </group>
                    <group/>
                </group>
                <notebook attrs="{'invisible': [('display_complete', '=', False)]}">
                    <page string="Description" name="description">
                        <field name="note"/>
                    </page>
                </notebook>
                </sheet>
                <div class="oe_chatter">
                    <field name="message_follower_ids"/>
                    <field name="activity_ids"/>
                    <field name="message_ids"/>
                </div>
            </form>
        