Search Views in OpenERP
Search views are a new feature of OpenERP supported in OpenERP version 6. It creates a customized search panel, and is declared quite similarly to a form view, except that the view type and root element change to search instead of form. After declaring a search view, it will be used automatically for all tree views on the same model.
The view part of search view is of the following form
There are a number of new elements and features supported in search views. They are Group tag, Filter tag, and Group By...
Group tag
Search view groups support unlimited number of fields or filters in a row. Search view can have expandible groups. In the screenshot above the green area is an expandable group.
Filter tag
Filters are displayed as a toggle button on search panel.Filters can be added as a child element of field, to indicate that they apply specifically to that field. In this case the button’s icon will be smaller. In the picture above the red area contains filters at the top of the form while the blue area highlights a field and it’s child filter.
Group By
This code groups records sharing the same project_id value. The inner records are only loaded when the group is expanded. The group header lines contain the common values for all records in that group.