Skip to Content
Menu
This question has been flagged
1 Reply
1970 Views

How to only show product of selected category and not the products of the child category?

example : 

cat1 with subcat 2 and subcat3

when i click on cat1 i only want to see these products and not the products of  subcat2  and  subcat3.

thanks 

Avatar
Discard
Author

Hello thanks for your quick answer.

i am relative new to the odoo scene. 

i use odoo online. i dont know where i have to change the code. Can you help?

Thanks

Best Answer

You can change the domain: 

Currently it is using this domain :

[('public_categ_ids', 'child_of', int(category))]
You have to use :

[('public_categ_ids', '=', int(category))]

Avatar
Discard
Author

Hello thanks for your quick answer.

i am relative new to the odoo scene.

i use odoo online. i dont know where i have to change the code. Can you help?

Thanks

Related Posts Replies Views Activity
2
Nov 23
1607
0
Jul 21
1156
3
Aug 15
5548
1
Mar 15
4532
1
Apr 24
1481