If you're trying to filter products by category in a custom view or search:
1. Using Domain Filters (XML or Python):
You can use the categ_id field (which links to the product category):
xml
CopyEdit
<filter name="filter_category" string="My Category"
domain="[('categ_id.name','=','Your Category Name')]" />
This adds a custom filter for a specific category name.
2. In Odoo UI (Search Bar):
-
Go to Products → Search → Add Custom Filter
-
Choose Category → is equal to → Your desired category
3. Using Studio (If Enabled):
If you're on Odoo Online and using Studio:
-
Open your view in Studio
-
Add a new filter with the domain:
categ_id.name = Your Category Name
If you're building a module or customizing, ensure categ_id is correctly referenced, and category names match.
@Ritik — Just a friendly reminder: the Odoo forum is meant for open community help and knowledge sharing. Please avoid promoting your company or services here. Let’s keep the space focused on solving problems and supporting each other. Thanks!