<?xml version="1.0"?>
<form>
                <sheet>
                    <field name="res_model" invisible="True"/>
                    <h1>
                        <field name="name" readonly="not datas and type != 'url'"/>
                    </h1>
                    <group>
                        <group>
                            <field name="type" readonly="datas or id" class="oe_inline"/>
                            <label for="datas"/>
                            <div class="o_row">
                                <field name="datas" filename="name" invisible="type == 'url'" required="type == 'binary'" class="oe_inline"/>
                            </div>
                            <field name="url" widget="url" invisible="type == 'binary'" required="type == 'url'"/>
                            <field name="res_name" string="Product Variant" invisible="res_model != 'product.product'"/>
                        </group>
                    </group>
                    <group string="Attached To" groups="base.group_no_one">
                        <field name="res_name"/>
                        <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}" class="oe_inline" placeholder="Visible to all"/>
                    </group>
                    <group string="History" groups="base.group_no_one" invisible="not create_date">
                        <label for="create_uid" string="Creation"/>
                        <div name="creation_div">
                            <field name="create_uid" readonly="1" class="oe_inline"/> on
                            <field name="create_date" readonly="1" class="oe_inline"/>
                        </div>
                    </group>
                </sheet>
            </form>
        