[IMP]lunch:improvement analysis report

bzr revid: kbh@tinyerp.com-20111115061754-ekwxp27v5mw0kgj0
This commit is contained in:
Khushboo Bhatt (Open ERP)
2011-11-15 11:47:54 +05:30
parent 9f1a608819
commit 8fc5d886ce
+4 -1
View File
@@ -371,9 +371,11 @@
<field name="arch" type="xml">
<search string="Box Amount by User">
<group>
<filter icon="terp-go-year" string=" Year "
<filter icon="terp-go-year" string=" Year " name="year"
domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')),('date','&gt;=',time.strftime('%%Y-01-01'))]"
help="Box amount in current year"/>
<separator orientation="vertical"/>
<filter icon="terp-go-month" string=" Month "
name="month"
domain="[('date','&lt;=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date','&gt;=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
@@ -402,6 +404,7 @@
<field name="res_model">report.lunch.amount</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context">{'search_default_year': 1,"search_default_month":1}</field>
<field name="search_view_id" ref="view_report_lunch_amount_search"/>
</record>