merge: useability membership, events
bzr revid: fp@tinyerp.com-20111116190124-46utx2qu6lkg8kkr
This commit is contained in:
commit
9067da738b
|
@ -53,10 +53,11 @@
|
|||
<field name="arch" type="xml">
|
||||
<search string="Event on Registration">
|
||||
<group>
|
||||
<filter string=" Year " icon="terp-go-year"
|
||||
<filter string="Year" icon="terp-go-year" name="year"
|
||||
domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>=',time.strftime('%%Y-01-01'))]"
|
||||
help="Events created in current year"/>
|
||||
<filter string=" Month " icon="terp-go-month" name="this_month"
|
||||
<separator orientation="vertical"/>
|
||||
<filter string="Month" icon="terp-go-month" name="this_month"
|
||||
domain="[('date','<=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date','>=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
|
||||
help="Events created in current month"/>
|
||||
<filter icon="terp-go-month" string=" Month-1 "
|
||||
|
@ -126,7 +127,7 @@
|
|||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,graph</field>
|
||||
<field name="search_view_id" ref="view_report_event_registration_search"/>
|
||||
<field name="context">{"search_default_365day":1, "search_default_invoiced":1, "search_default_event":1, 'group_by_no_leaf':1, 'group_by':[]}</field>
|
||||
<field name="context">{"search_default_year":1,"search_default_this_month":1,"search_default_365day":1, "search_default_invoiced":1, "search_default_event":1, 'group_by_no_leaf':1, 'group_by':[]}</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window.view" id="action_report_event_registration_tree">
|
||||
|
|
|
@ -36,9 +36,10 @@
|
|||
<field name="arch" type="xml">
|
||||
<search string="Membership">
|
||||
<group>
|
||||
<filter string=" Year " icon="terp-go-year"
|
||||
domain="[('date_from','<=', time.strftime('%%Y-%%m-%%d')),('date_from','>=',time.strftime('%%Y-01-01'))]"
|
||||
help="Events created in current year"/>
|
||||
<filter string="Year" icon="terp-go-year" name="year"
|
||||
domain="[('date_from','<=', time.strftime('%%Y-%%m-%%d')),('date_from','>=',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','<=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date_from','>=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
|
||||
help="Events created in current month"/>
|
||||
|
@ -96,7 +97,7 @@
|
|||
<field name="res_model">report.membership</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="search_view_id" ref="view_report_membership_search"/>
|
||||
<field name="context">{"search_default_member":1, 'search_default_Revenue':1, 'search_default_this_month':1, 'search_default_salesman':1,'group_by_no_leaf':1}</field>
|
||||
<field name="context">{"search_default_year":1,"search_default_member":1, 'search_default_Revenue':1, 'search_default_this_month':1, 'search_default_salesman':1,'group_by_no_leaf':1}</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window.view" id="action_report_membership_tree_view1">
|
||||
|
|
Loading…
Reference in New Issue