Odoo 16 Development Book

Search View

In Odoo, there are various view kinds. The search view is unique in comparison to other views because just a portion of the items will be seen in the search view. Since form views only contain one record, it is used to filter the contents of other views rather than those of the form view.

For example:

<record id="hospital_patient_search" model="ir.ui.view">
            <field name="name">patient.info.search</field>
            <field name="model">patient.info</field>
            <field name="arch" type="xml">
                <search>
                    <field name="name"/>
                    <field name="partner_email"/>
                    <field name="age"/>
                    <field name="gender"/>
                </search>
            </field>
         </record>
odoo Development

When clicking the archived filter, you will get all the archived records. Different filtering conditions can be specified in the domain attribute. If you choose to group by, you can include filters both inside the group tag and the search tag. i.e., There are filters and grouping options in the search view. Records are filtered based on conditions using the filter command, and records are grouped using the group by command.by a field. You don’t want to choose “Add Custom Filter” or “Add Custom Group” all the time, there is an easy way for adding these by default.

If you choose to group by, you can include filters both inside the group tag and the search tag.

location

Calicut

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

location

Kochi

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

location

Bangalore

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

Send Us A Message