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

bzr revid: mdi@tinyerp.com-20120529045509-garnh9vhb68fph0v
This commit is contained in:
Divyesh Makwana (Open ERP)
2012-05-29 10:25:09 +05:30
parent 2fc05037fd
commit e8bf2fda8e
@@ -31,21 +31,8 @@
<field name="arch" type="xml">
<search string="Tasks by User">
<group>
<filter icon="terp-go-year" string="Year"
name="year"
domain="[('name','&lt;=', time.strftime('%%Y-%%m-%%d')),('name','&gt;=',time.strftime('%%Y-01-01'))]"
help="Task Hours in current year"/>
<separator orientation="vertical"/>
<filter icon="terp-go-month" string="Month"
name="month"
domain="[('name','&lt;=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('name','&gt;=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
help="Task Hours in current month"/>
<filter icon="terp-go-month"
string=" Month-1 "
domain="[('name','&lt;=', (datetime.date.today() - relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),('name','&gt;=',(datetime.date.today() - relativedelta(day=1,months=1)).strftime('%%Y-%%m-%%d'))]"
help="Task hours of last month"/>
<separator orientation="vertical"/>
<field name="user_id"/>
<field name="name"/>
</group>
<newline/>
<group expand="1" string="Group By...">