The search criteria are set up using the tag <search-fields> . Inside this tag, you must then list the fields specifying the type.
Each search field is defined using the tag <field>. structure of the tag is as follows:
Details of tags used:
The field types used are:
The widget can be used are:
Example:
<search-fields>
<field name="partner" type="reference" target="com.axelor.contact.db.Contact" />
<field name="product" type="reference" target="com.axelor.sale.db.Product" widget="SuggestBox" />
<field name="customer" type="string" />
<field name="date" type="date" />
<field name="value" type="decimal" />
</search-fields>