Odoo Help

4

2
3 Answers
2
Avatar

Bonnet Denis France

--Bonnet Denis--
981
| 5 6 10
St avé, France
--Bonnet Denis--

CEO/ODOO expert at Talyes.in

Bonnet Denis France
6/25/13, 2:21 PM

You can go to Sales --> Products --> Products by Category menu and delete the filter in search bar. You'll have all product of the category tree.

Or you can create a filter like

<filter string="NAME" icon="terp-accessories-archiver" domain="[('categ_id','child_of',X]"/>

where X is the ID of your category. You can use a list of categories like domain="[('categ_id','child_of',[X,Y])]"

1 Comment
Ahmad Khayyat Saudi Arabia
6/25/13, 2:45 PM

This is exactly what I was looking for. Unintuitive, but at least it's possible.

0
Avatar

Priyesh Solanki (pso)

--Priyesh Solanki (pso)--

1160
| 2 2 4
--Priyesh Solanki (pso)--
Priyesh Solanki (pso)
4/11/13, 3:45 AM

What I understood is that You want to list out all products of subcategory of parent category. For that, Go to the Sales --> Products --> Products by Category menu. Expand categories and click on it. You will see all products related to that category. Otherwise let me know more information regarding it.

Thanks, Priyesh Solanki

0
Avatar

Leonardo Donelli Italy

--Leonardo Donelli--
1176
| 5 4 10
Roma, Italy
--Leonardo Donelli--

Physics student and part-time developer.

Leonardo Donelli Italy
5/6/14, 6:06 AM

Late answer for those who come here from Google

If when you set a category filter in the search widget you want to display all products in that category or subcategories (the default behaviour is to display only products with that exact category set, which is kind of stupid if you ask me), you can modify the search view defined in product_product: add this xml in a custom module:

<record id="view_product_search_child_categories" model="ir.ui.view">
    <field name="name">Redefined product search view: subcategories</field>
    <field name="model">product.product</field>
    <field name="inherit_id" ref="product.product_search_form_view" />
    <field name="arch" type="xml">
        <field name="categ_id" position="attributes">
            <attribute name="operator">child_of</attribute>
        </field>
    </field>
</record>
4 Comments
Bonnet Denis France
5/6/14, 8:11 AM

this the same solution than mine but it's a better integration. Thanks for the trick.

MONK Software, Leonardo Donelli Italy
5/12/14, 9:40 AM

Yes, and you don't need to specify the ID of the category, so you can use it for all categories. But it is indeed based on your answer.

Eric China
9/24/14, 12:41 AM

How to do this?

Eric China
9/24/14, 12:44 AM

I added this xml in /addons/product/product_view_all.xml together with the and . Then I edited __openerp__.py to include the new xml on the 'data' :[] But i still can't find the way to make it work. Where can I add the XML?

Ask a Question
Writer
Keep Informed
2 follower(s)
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.

Register
Odoo Training Center

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

Test it now