[IMP] account : Improved the Search View.

bzr revid: mdi@tinyerp.com-20120614064516-1xge1f7rq1k50efi
This commit is contained in:
Divyesh Makwana (Open ERP) 2012-06-14 12:15:16 +05:30
parent d0cd006418
commit a261d76938
1 changed files with 5 additions and 3 deletions

View File

@ -447,13 +447,15 @@
<field name="arch" type="xml">
<search string="Search Account Journal">
<group>
<field name="name"
filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]"
string="Journal"/>
<separator orientation="vertical"/>
<filter domain="['|', ('type', '=', 'sale'), ('type', '=', 'sale_refund')]" string="Sale" icon="terp-camera_test"/>
<filter domain="['|', ('type', '=', 'purchase'), ('type', '=', 'purchase_refund')]" string="Purchase" icon="terp-purchase"/>
<filter domain="['|', ('type', '=', 'cash'), ('type', '=', 'bank')]" string="Liquidity" icon="terp-dolar"/>
<filter domain="['|', ('type', '=', 'cash'), ('type', '=', 'bank')]" string="Liquidity" icon="terp-dolar"/>
<filter domain="['|', ('type', '=', 'general'), ('type', '=', 'situation')]" string="Others" icon="terp-stock"/>
<separator orientation="vertical"/>
<field name="code"/>
<field name="name"/>
<field name="user_id"/>
</group>
<newline/>