[IMP]marketing:improvement analysis report

bzr revid: kbh@tinyerp.com-20111110102059-oijxnmbsfxk1uz42
This commit is contained in:
Khushboo Bhatt (Open ERP)
2011-11-10 15:50:59 +05:30
parent 4a48b9abad
commit 207e964b2b
@@ -32,12 +32,17 @@
<field name="arch" type="xml">
<search string="Campaign Analysis">
<group>
<filter icon="terp-go-year"
<filter icon="terp-go-year" name="year"
string="This Year"
domain="[('year','=',time.strftime('%%Y'))]"/>
<separator orientation="vertical"/>
<filter icon="terp-go-month"
string="This Month"
string="This Month" name="This Month"
domain="[('month','=',time.strftime('%%m'))]"/>
<filter icon="terp-go-month" string=" Month-1 "
domain="[('create_date','&lt;=', (datetime.date.today() - relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),('create_date','&gt;=',(datetime.date.today() - relativedelta(day=1,months=1)).strftime('%%Y-%%m-%%d'))]"/>
<filter icon="terp-go-today"
string="Today"
domain="[('date','=',time.strftime('%%Y/%%m/%%d'))]"/>
@@ -81,7 +86,7 @@
<field name="res_model">campaign.analysis</field>
<field name="view_type">form</field>
<field name="view_mode">tree</field>
<field name="context">{'group_by': [], 'search_default_Campaign': 1, 'search_default_Segment': 1, 'group_by_no_leaf':1}</field>
<field name="context">{'search_default_year': 1,"search_default_This Month":1,'group_by': [], 'search_default_Campaign': 1, 'search_default_Segment': 1, 'group_by_no_leaf':1}</field>
<field name="search_view_id" ref="view_campaign_analysis_search"/>
</record>