Tutorial: Create Search Views
Learn how to create search views with filters and group by
Search View
Filters
Group By
Overview
This tutorial module teaches you how to create comprehensive search views in Odoo with filters, group by options, and search panels.
What You'll Learn
- Search field definitions with custom filter domains
- Creating predefined filters with domain conditions
- Group by options using context
- Date filters with automatic period options
- Search panels for category filtering (Enterprise)
- Default search configuration in actions
Contains
- New app "Search View Tutorial" on homescreen
- Comprehensive search view on contacts
- Multiple filter examples (Companies, Has Email, Customers)
- Group by examples (Country, City, Creation Date)
Key Code Example
<search string="Search Contacts">
<field name="name"/>
<filter name="filter_company" string="Companies"
domain="[('is_company', '=', True)]"/>
<group expand="0" string="Group By">
<filter name="group_country"
context="{'group_by': 'country_id'}"/>
</group>
</search>
Tutorial: Create Search Views
Learn how to create search views with filters and group by
Search View
Filters
Group By
Overview
This tutorial module teaches you how to create comprehensive search views in Odoo with filters, group by options, and search panels.
What You'll Learn
- Search field definitions with custom filter domains
- Creating predefined filters with domain conditions
- Group by options using context
- Date filters with automatic period options
- Search panels for category filtering (Enterprise)
- Default search configuration in actions
Contains
- New app "Search View Tutorial" on homescreen
- Comprehensive search view on contacts
- Multiple filter examples (Companies, Has Email, Customers)
- Group by examples (Country, City, Creation Date)
Key Code Example
<search string="Search Contacts">
<field name="name"/>
<filter name="filter_company" string="Companies"
domain="[('is_company', '=', True)]"/>
<group expand="0" string="Group By">
<filter name="group_country"
context="{'group_by': 'country_id'}"/>
</group>
</search>
Technical Information
Version: 19.0.1.0.0
Dependencies: base, contacts
License: OPL-1
Please log in to comment on this module