Development Book V17: Search View

Odoo offers various types of views, and the search view stands out due to its unique characteristics. Unlike other views, the search view displays only a subset of items. Unlike form views, which typically showcase a single record, the search view is primarily employed to filter the contents of other views rather than those of the form view.

For example:

<record id="hospital_patient_view_search" model="ir.ui.view">
   <field name="name"></field>
   <field name="model">hospital.patient</field>
   <field name="arch" type="xml">
           <field name="name"/>
           <field name="email"/>
           <field name="age"/>
           <field name="phone"/>

The above code specifies the search view for the "hospital.patient" model with fields such as name, email, age, and phone included in the search criteria. This allows users to perform searches based on these fields in the specified view.



Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635



Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.



Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message