这个搜索栏,想设置成隐藏状态,或者是针对某用户开放.
搜索视图 的代码
<?xml version="1.0"?><search string="Accounts"> <field name="name" string="Account" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" />
<filter string="Receivable Accounts" domain="[('type','=','receivable')]" icon="terp-sale" />
<filter string="Payable Accounts" domain="[('type','=','payable')]" icon="terp-purchase" />
<field name="user_type" />
<group groups="share.group_share_user" string="Group By" expand="0"> <filter string="Parent Account" domain="" icon="terp-folder- orange" context="{'group_by':'parent_id'}" />
<filter string="Account Type" domain="" icon="terp-stock_symbol- selection" context="{'group_by':'user_type'}" /> <filter string="Internal Type" domain="" icon="terp- stock_symbol-selection" context="{'group_by':'type'}" />
</group>
</search>