Odoo Help


How to add search by group

on 10/17/14, 4:48 AM 544 views


How to add search by group in product

my code

<record id="product_myform_search" model="ir.ui.view">
            <field name="name">product.myform.search</field>
            <field name="model">product.product</field>
            <field name="type">search</field>
            <field name="inherit_id" ref="product.product_search_form_view" />
            <field name="arch" type="xml">

                       <xpath expr="/search[@string='Product']/group[2]/filter[@string='Category']" position="after">
                              <filter string="Famille"  icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'mfamille'}"/>
                              <filter string="Sous famille" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'sfamille'}"/>


Ludo - Neobis
On 10/17/14, 6:09 AM

Not quite clear what you mean to do. Do you want to add a filter or a group-by clause to the products? 

Note: In order to create a group-by, the field you will group by MUST exist in the tree view!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/17/14, 4:48 AM
Seen: 544 times
Last updated: 3/16/15, 8:10 AM