[IMP] membership : Removed all filters related to a date field and added the related date field in the search view.

bzr revid: mdi@tinyerp.com-20120522100836-rnmbhv0jx93vev0d
This commit is contained in:
Divyesh Makwana (Open ERP) 2012-05-22 15:38:36 +05:30
parent 31a851ad15
commit 601802a62f
1 changed files with 1 additions and 11 deletions

View File

@ -36,23 +36,13 @@
<field name="arch" type="xml">
<search string="Membership">
<group>
<filter string="Year" icon="terp-go-year" name="year"
domain="[('date_from','&lt;=', time.strftime('%%Y-%%m-%%d')),('date_from','&gt;=',time.strftime('%%Y-01-01'))]"
help="Events created in current year"/>
<separator orientation="vertical"/>
<filter string=" Month " icon="terp-go-month" name="this_month"
domain="[('date_from','&lt;=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date_from','&gt;=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
help="Events created in current month"/>
<filter icon="terp-go-month" string=" Month-1 "
domain="[('date_from','&lt;=', (datetime.date.today() - relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),('date_from','&gt;=',(datetime.date.today() - relativedelta(day=1,months=1)).strftime('%%Y-%%m-%%d'))]"
help="Events created in last month"/>
<separator orientation="vertical"/>
<filter string="Forecast" icon="terp-gtk-jump-to-ltr" context="{'waiting_invoiced_totpending_visible':0}" help="This will display waiting, invoiced and total pending columns"/>
<separator orientation="vertical"/>
<filter string="Revenue Done" name="Revenue" icon="terp-dolar" context="{'paid_old_totearned_visible':0}" help="This will display paid, old and total earned columns"/>
<field name="partner_id"/>
<field name="membership_id"/>
<field name="user_id"/>
<field name="date_from"/>
</group>
<newline/>
<group expand="1" string="Group By...">