<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="product_template_form_view" model="ir.ui.view">
        <field name="model">product.template</field>
        <field name="inherit_id" ref="point_of_sale.product_template_form_view" />
        <field name="arch" type="xml">
            <group name="pos" position="inside">
                <field
                    name="is_deposit"
                    attrs="{'invisible': ['|', '|', '|', ('deposit_product_id', '!=', False), ('sale_ok', '=', False), ('type', '=', 'service'), ('available_in_pos', '=', False)]}"
                />
                <field
                    name="deposit_product_id"
                    attrs="{'invisible': ['|', '|', '|', '|', ('is_deposit', '!=', False), ('sale_ok', '=', False), ('type', '=', 'service'), ('available_in_pos', '=', False), '&amp;', ('product_variant_count', '&gt;', 1), ('is_product_variant', '=', False)]}"
                />
            </group>
        </field>
    </record>
    <record id="product_template_search_view" model="ir.ui.view">
        <field name="model">product.template</field>
        <field name="inherit_id" ref="product.product_template_search_view" />
        <field name="arch" type="xml">
            <separator position="before">
                <field name="deposit_product_id" domain="[('is_deposit', '=', True)]" />
            </separator>
        </field>
    </record>
</odoo>
