[IMP] account_coda : Improved the Search View.

bzr revid: mdi@tinyerp.com-20120614110234-ai0ib21nx3sxk5j8
This commit is contained in:
Divyesh Makwana (Open ERP) 2012-06-14 16:32:34 +05:30
parent 8247ac182e
commit 53f33a840e
1 changed files with 83 additions and 76 deletions

View File

@ -12,12 +12,14 @@
<field name="type">search</field>
<field name="arch" type="xml">
<search string="CODA Bank Account Configuration">
<field name="name"
filter_domain="['|', ('name','ilike',self), ('description1','ilike',self)]"
string="CODA Bank Account"/>
<separator orientation="vertical"/>
<filter string="Normal" domain="[('state','=','normal')]" icon="terp-folder-green"/>
<filter string="Info" domain="[('state','=','info')]" icon="terp-folder-yellow"/>
<separator orientation="vertical"/>
<field name="name"/>
<field name="bank_id"/>
<field name="description1"/>
<field name="journal"/>
<field name="currency" widget="selection"/>
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
@ -384,11 +386,14 @@
<field name="arch" type="xml">
<search string="Search CODA Bank Statements">
<group col="8" colspan="4">
<field name="name"
filter_domain="[('name','ilike',self)]"
string="CODA Bank Statement"/>
<field name="date"/>
<separator orientation="vertical"/>
<filter string="Normal" domain="[('type','=','normal')]" icon="terp-folder-green"/>
<filter string="Info" domain="[('type','=','info')]" icon="terp-folder-yellow"/>
<separator orientation="vertical"/>
<field name="name"/>
<field name="date"/>
<field name="period_id"/>
<field name="coda_bank_account_id"/>
<field name="journal_id" widget="selection" domain="[('type', '=', 'bank')]"/>
@ -473,23 +478,25 @@
<field name="arch" type="xml">
<search string="Search Bank Transactions">
<group col='6' colspan='4'>
<field name="name"
filter_domain="['|', ('name','ilike',self), ('ref','ilike',self)]"
string="Bank Transaction"/>
<field name="val_date"/>
<separator orientation="vertical"/>
<filter name="debit" string="Debit" domain="[('amount','&gt;',0)]" icon="terp-folder-green" help="Debit Transactions."/>
<filter name="credit" string="Credit" domain="[('amount','&lt;',0)]" icon="terp-folder-orange" help="Credit Transactions."/>
<separator orientation="vertical"/>
<field name="statement_id"/>
<field name="val_date"/>
<field name="amount"/>
<field name="globalisation_id" string="Glob. Id"/>
<field name="globalisation_amount" string="Glob. Amount"/>
<field name="name"/>
<field name="type"/>
</group>
<newline/>
<group expand="0" string="Extended Filters...">
<field name="coda_bank_account_id"/>
<field name="account_id"/>
<field name="partner_id"/>
<field name="ref"/>
<field name="amount"/>
<field name="globalisation_amount" string="Glob. Amount"/>
<field name="type"/>
<field name="note"/>
</group>
<newline/>