<form string="Create Stock">
                <div class="alert alert-warning" role="alert" invisible="context.get('readonly_form')">
                You are going to pick products that are not referenced
in this location. That leads to a negative stock.
                </div>
                <group>
                    <group>
                        <field name="location_id" invisible="1"/>
                        <field name="company_id" invisible="1"/>
                        <field name="product_id" invisible="1"/>
                        <field name="product_id" force_save="1" invisible="1"/>
                        <field name="lot_id" domain="[('product_id', '=', product_id)]" groups="stock.group_production_lot" readonly="context.get('readonly_form')" context="{'default_product_id': product_id, 'active_picking_id': context.get('active_picking_id')}"/>
                        <field name="location_id" groups="stock.group_stock_multi_locations" readonly="context.get('readonly_form')"/>
                        <field name="package_id" groups="stock.group_tracking_lot" invisible="context.get('readonly_form')"/>
                        <field name="owner_id" groups="stock.group_tracking_owner" invisible="context.get('readonly_form')"/>
                    </group>
                </group>
            </form>