Defining search views
When opening your list view, you’ll notice the search field in the upper right. If you type something there, you will receive suggestions about what to search for, and there is also a set of predefined filters to choose from. This recipe will walk you through how to define these suggestions and options.
How to do it...
- Define your search view:
<record id="hostel_room_view_search" model="ir.ui.view"> <field name="model">hostel.room</field> <field name="arch" type="xml"> <search> <field name="name"/> <field name="room_no"/> <group...