[IMP] account_followup : Improved the Search View.
bzr revid: mdi@tinyerp.com-20120614112913-8myzbmgwtqaaialx
This commit is contained in:
parent
53f33a840e
commit
cbc9d77c02
|
@ -71,11 +71,13 @@
|
|||
<field name="type">search</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Search Followup">
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<group>
|
||||
<field name="name"
|
||||
filter_domain="[('name','ilike',self)]"
|
||||
string="Followup"/>
|
||||
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
</search>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
|
@ -34,41 +34,42 @@
|
|||
</graph>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_account_followup_stat_search" model="ir.ui.view">
|
||||
<field name="name">account_followup.stat.search</field>
|
||||
<field name="model">account_followup.stat</field>
|
||||
<field name="type">search</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Follow-ups Sent">
|
||||
<group>
|
||||
<filter icon="terp-go-year" string="This Fiscal year"
|
||||
name="fiscalyear"
|
||||
domain="[('period_id','in','current_year')]"
|
||||
<record id="view_account_followup_stat_search" model="ir.ui.view">
|
||||
<field name="name">account_followup.stat.search</field>
|
||||
<field name="model">account_followup.stat</field>
|
||||
<field name="type">search</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Follow-ups Sent">
|
||||
<group>
|
||||
<field name="date_move"/>
|
||||
<field name="date_move_last"/>
|
||||
<separator orientation="vertical"/>
|
||||
<filter icon="terp-go-year" string="This Fiscal year"
|
||||
name="fiscalyear"
|
||||
domain="[('period_id','in','current_year')]"
|
||||
help="Follow up Entries with period in current year"/>
|
||||
<separator orientation="vertical"/>
|
||||
<filter icon="terp-camera_test" string="Not Litigation"
|
||||
domain="[('blocked','=', False)]"
|
||||
help = "Including journal entries marked as a litigation"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="balance" />
|
||||
<field name="date_move" />
|
||||
<field name="date_move_last" />
|
||||
</group>
|
||||
<newline/>
|
||||
<group expand="1" string="Group By...">
|
||||
<filter string="Partner" icon="terp-partner" context="{'group_by':'partner_id'}" />
|
||||
<separator orientation="vertical"/>
|
||||
<filter string="Litigation" icon="terp-camera_test" context="{'group_by':'blocked'}" />
|
||||
<separator orientation="vertical"/>
|
||||
<filter string="Followup Level" icon="terp-stock_effects-object-colorize" name="followup_level" context="{'group_by':'followup_id'}" />
|
||||
<filter string="Latest Followup Date" icon="terp-go-month" context="{'group_by':'date_followup'}" />
|
||||
<separator orientation="vertical" groups="base.group_multi_company"/>
|
||||
<filter string="Company" groups="base.group_multi_company" icon="terp-go-home" context="{'group_by':'company_id'}" />
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<separator orientation="vertical"/>
|
||||
<filter icon="terp-camera_test" string="Not Litigation"
|
||||
domain="[('blocked','=', False)]"
|
||||
help = "Including journal entries marked as a litigation"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="balance"/>
|
||||
</group>
|
||||
<newline/>
|
||||
<group expand="1" string="Group By...">
|
||||
<filter string="Partner" icon="terp-partner" context="{'group_by':'partner_id'}" />
|
||||
<separator orientation="vertical"/>
|
||||
<filter string="Litigation" icon="terp-camera_test" context="{'group_by':'blocked'}" />
|
||||
<separator orientation="vertical"/>
|
||||
<filter string="Followup Level" icon="terp-stock_effects-object-colorize" name="followup_level" context="{'group_by':'followup_id'}" />
|
||||
<filter string="Latest Followup Date" icon="terp-go-month" context="{'group_by':'date_followup'}" />
|
||||
<separator orientation="vertical" groups="base.group_multi_company"/>
|
||||
<filter string="Company" groups="base.group_multi_company" icon="terp-go-home" context="{'group_by':'company_id'}" />
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<record id="action_followup_stat" model="ir.actions.act_window">
|
||||
<field name="name">Follow-ups Sent</field>
|
||||
<field name="res_model">account_followup.stat</field>
|
||||
|
|
|
@ -36,21 +36,22 @@
|
|||
parent="account.menu_finance_periodical_processing_billing"
|
||||
sequence="10"/>
|
||||
|
||||
<record id="account_followup_stat_by_partner_search" model="ir.ui.view">
|
||||
<record id="account_followup_stat_by_partner_search" model="ir.ui.view">
|
||||
<field name="name">account_followup.stat.by.partner.search</field>
|
||||
<field name="model">account_followup.stat.by.partner</field>
|
||||
<field name="type">search</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Partner to Remind">
|
||||
<filter string="Balance > 0" domain="[('balance','>',0)]" icon="terp-dolar" name="balance_positive"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="max_followup_id"/>
|
||||
<field name="date_followup"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="date_followup"/>
|
||||
<separator orientation="vertical"/>
|
||||
<filter string="Balance > 0" domain="[('balance','>',0)]" icon="terp-dolar" name="balance_positive"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="max_followup_id"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
</record>
|
||||
|
||||
<!-- Screen2 -->
|
||||
<record id="account_followup_stat_by_partner_tree" model="ir.ui.view">
|
||||
|
|
Loading…
Reference in New Issue