默认分组和筛选
True

<!--线别管理search-->
<record model="ir.ui.view" id="repair_manage_lines_search">
<field name="name">线别管理search</field>
<field name="model">repair_manage.lines</field>
<field name="arch" type="xml">
<search>
<group expand="0" string="Group By">
<filter name="lines_search" string="线别分组" domain="[]" context="{'group_by':'name'}"/>
</group>
</search>
</field>
</record>
action中加上:
<field name="context">{"search_default_lines_search":1}</field>
<record model="ir.ui.view" id="jj_mrequest.searchview">
<field name="name">Purchase List</field>
<field name="model">jj_mrequest.jj_mrequest</field>
<field name="arch" type="xml">
<search>
<field name="employee_id"/>
<filter string="My Purchase" name="employee_id_search" domain="[('employee_id.user_id','=',uid)]"/>
<field name="name"/>
<field name="items"/>
</search>
</field>
</record>
action中加上:
<field name="context">{"search_default_employee_id_search":0}</field>
禁用quick create
True