<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

    <record id="view_production_lot_form" model="ir.ui.view">
        <field name="name">stock.lot.view.form</field>
        <field name="model">stock.lot</field>
        <field name="inherit_id" ref="stock.view_production_lot_form" />
        <field name="arch" type="xml">
            <xpath expr="//div[hasclass('oe_title')]" position="before">
                <field
                    name="image_1920"
                    widget="image"
                    options="{'preview_image': 'image_1920', 'size': [88, 88]}"
                    class="oe_avatar"
                    attrs="{'invisible': [('image_1920', '=', False)]}"
                />
            </xpath>
            <xpath expr="/form/sheet/notebook" position="inside">
                <page string="Images" name="multi_image">
                    <field
                        name="image_ids"
                        nolabel="1"
                        context="{
                               'default_owner_model': 'stock.lot',
                               'default_owner_id': id,
                           }"
                        mode="kanban"
                    />
                </page>
            </xpath>
        </field>
    </record>

</odoo>
