<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <menuitem id="base.menu_product" name="Product Variants" parent="base.menu_base_partner" sequence="9" groups="product.group_product_variant"/>

        <!-- Variants -->
        <record id="product_attribute_value_view_tree" model="ir.ui.view">
            <field name="name">product.attribute.value.view.tree</field>
            <field name="model">product.attribute.value</field>
            <field name="arch" type="xml">
                <tree string="Attributes" editable="top">
                    <field name="sequence" widget="handle"/>
                    <field name="attribute_id"/>
                    <field name="name"/>
                    <field name="price_extra"/>
                </tree>
            </field>
        </record>
        <record id="product_attribute_value_action" model="ir.actions.act_window">
            <field name="name">Variant Values</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.attribute.value</field>
            <field name="view_mode">tree</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="product_attribute_value_view_tree"/>
            <field name="domain">[('product_ids.product_tmpl_id', '=', active_id)]</field>
            <field name="context">{'default_product_tmpl_id': active_id}</field>
        </record>

        <!-- templates -->

        <record id="product_template_search_view" model="ir.ui.view">
            <field name="name">product.template.search</field>
            <field name="model">product.template</field>
            <field name="arch" type="xml">
                <search string="Product">
                    <field name="name" string="Product" filter_domain="['|',('default_code','ilike',self),('name','ilike',self)]"/>
                    <separator/>
                    <filter string="Services" name="services" domain="[('type','=','service')]"/>
                    <filter string="Products" name="consumable" domain="[('type', 'in', ['consu', 'product'])]" help="Products your store in the inventory"/>
                    <separator/>
                    <filter string="Can be Sold" name="filter_to_sell" domain="[('sale_ok','=',1)]"/>
                    <separator/>
                    <filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
                    <field string="Attributes" name="attribute_line_ids"/>
                    <field name="pricelist_id" widget="selection" context="{'pricelist': self}" filter_domain="[]" groups="product.group_sale_pricelist"/> <!-- Keep widget=selection on this field to pass numeric `self` value, which is not the case for regular m2o widgets! --><commit_msg>[IMP] product: added field category_id in search view<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <menuitem id="base.menu_product" name="Product Variants" parent="base.menu_base_partner" sequence="9" groups="product.group_product_variant"/>

        <!-- Variants -->
        <record id="product_attribute_value_view_tree" model="ir.ui.view">
            <field name="name">product.attribute.value.view.tree</field>
            <field name="model">product.attribute.value</field>
            <field name="arch" type="xml">
                <tree string="Attributes" editable="top">
                    <field name="sequence" widget="handle"/>
                    <field name="attribute_id"/>
                    <field name="name"/>
                    <field name="price_extra"/>
                </tree>
            </field>
        </record>
        <record id="product_attribute_value_action" model="ir.actions.act_window">
            <field name="name">Variant Values</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.attribute.value</field>
            <field name="view_mode">tree</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="product_attribute_value_view_tree"/>
            <field name="domain">[('product_ids.product_tmpl_id', '=', active_id)]</field>
            <field name="context">{'default_product_tmpl_id': active_id}</field>
        </record>

        <!-- templates -->

        <record id="product_template_search_view" model="ir.ui.view">
            <field name="name">product.template.search</field>
            <field name="model">product.template</field>
            <field name="arch" type="xml">
                <search string="Product">
                    <field name="name" string="Product" filter_domain="['|',('default_code','ilike',self),('name','ilike',self)]"/>
                    <field name="categ_id" domain="[('categ_id', 'child_of', self)]"/>
                    <separator/>
                    <filter string="Services" name="services" domain="[('type','=','service')]"/>
                    <filter string="Products" name="consumable" domain="[('type', 'in', ['consu', 'product'])]" help="Products your store in the inventory"/>
                    <separator/>
                    <filter string="Can be Sold" name="filter_to_sell" domain="[('sale_ok','=',1)]"/>
                    <separator/>
                    <filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
                    <field string="Attributes" name="attribute_line_ids"/>
                    <field name="pricelist_id" widget="selection" context="{'pricelist': self}" filter_domain="[]" groups="product.group_sale_pricelist"/> <!-- Keep widget=selection on this field to pass numeric `self` value, which is not the case for regular m2o widgets! -->
{'fraction_non_alphanumeric': 0.16843570558552287, 'fraction_numerical': 0.0020880459370106142, 'mean_word_length': 2.5525339925834363, 'pattern_counts': {'":': 0, '<': 114, '<?xml version=': 2, '>': 114, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5371994', 'n_tokens_mistral': 1598, 'n_tokens_neox': 1523, 'n_words': 288}