December 2018
Beginner to intermediate
404 pages
10h 14m
English
The search options available are defined through the <search> view type. We can choose the fields that can be automatically searched when typing in the search box. We can also provide predefined filters, activated with a click, and predefined grouping options to be used in list views.
Here is a possible search view for the library checkouts:
<record id="view_filter_checkout" model="ir.ui.view">
<field name="model">library.checkout</field> <field name="arch" type="xml">
<search> <field name="member_id"/>
<field name="user_id"/> <filter name="filter_not_done" string="To Return"
domain="[('state','=','open')]"/>
<filter name="filter_my_checkouts" string="My Checkouts"
domain="[('user_id','=',uid)]"/> <filter name="group_user" ...Read now
Unlock full access