<?xml version="1.0"?>
<form string="Variant Information" duplicate="false">
                    <sheet>
                        <div class="oe_button_box" name="button_box"/>
                        <widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/>
                        <field name="active" invisible="1"/>
                        <field name="id" invisible="1"/>
                        <field name="company_id" invisible="1"/>
                        <field name="image_1920" widget="image" class="oe_avatar" options="{'convert_to_webp': True,'preview_image': 'image_128'}"/>
                        <div class="oe_title">
                            <label for="name" string="Product Name"/>
                            <h1><field name="name" readonly="1" placeholder="e.g. Odoo Enterprise Subscription"/></h1>
                            <field name="product_template_attribute_value_ids" widget="many2many_tags" readonly="1"/>
                            <p>
                                <span>All general settings about this product are managed on</span>
                                <button name="open_product_template" type="object" string="the product template." class="oe_link oe_link_product ps-0 ms-1 mb-1"/>
                            </p>
                        </div>
                        <group>
                            <group name="codes" string="Codes">
                                <field name="default_code"/>
                                <field name="barcode"/>
                                <field name="type" invisible="1"/>
                            </group>
                            <group name="pricing" string="Pricing">
                                <field name="product_variant_count" invisible="1"/>
                                <label for="lst_price" string="Sales Price"/>
                                <div class="o_row">
                                    <field name="lst_price" class="oe_inline" widget="monetary" options="{'currency_field': 'currency_id', 'field_digits': True}" readonly="product_variant_count &gt; 1"/>
                                </div>
                                <label for="standard_price"/>
                                <div class="o_row">
                                    <field name="standard_price" class="oe_inline" widget="monetary" options="{'currency_field': 'cost_currency_id', 'field_digits': True}"/>
                                </div>
                                <field name="currency_id" invisible="1"/>
                                <field name="cost_currency_id" invisible="1"/>
                            </group>
                        </group>
                        <group>
                            <group name="weight" string="Logistics" invisible="type != 'consu'">
                                <label for="volume"/>
                                <div class="d-flex">
                                    <field name="volume" class="oe_inline"/>
                                    <field name="volume_uom_name"/>
                                </div>
                                <label for="weight"/>
                                <div class="d-flex">
                                    <field name="weight" class="oe_inline"/>
                                    <field name="weight_uom_name"/>
                                </div>
                            </group>
                            <group name="sales" string="Sales">
                                <field name="uom_ids" widget="many2many_uom_tags" options="{'no_quick_create': True, 'edit_tags': True}" groups="uom.group_uom" force_save="1" context="{'product_id': id}"/>
                                <field name="product_tag_ids" widget="many2many_tags" readonly="1"/>
                                <field name="additional_product_tag_ids" widget="many2many_tags" context="{'product_variant_id': id}"/>
                            </group>
                        </group>
                    </sheet>
                </form>
            