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

bzr revid: mdi@tinyerp.com-20120522063531-re45k20jiwn2q3s0
This commit is contained in:
Divyesh Makwana (Open ERP)
2012-05-22 12:05:31 +05:30
parent 15c23819e4
commit dcad4713ae
2 changed files with 2 additions and 22 deletions
+1 -10
View File
@@ -217,16 +217,6 @@
help="All pending Helpdesk Request"
/>
<separator orientation="vertical"/>
<filter icon="terp-go-today" string="Today"
domain="[('date','&gt;=',current_date), ('date','&lt;=',current_date)]"
help="Todays's Helpdesk Requests"
/>
<filter icon="terp-go-week"
string="7 Days"
help="Helpdesk requests during last 7 days"
domain="[('date','&lt;',current_date), ('date','&gt;=',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
/>
<separator orientation="vertical"/>
<field name="name" string="Query"/>
<field name="partner_id" />
<field name="user_id" widget="selection"/>
@@ -236,6 +226,7 @@
domain="['|', ('section_id', '=', context.get('section_id')), '|', ('section_id.user_id','=',uid), ('section_id.member_ids', 'in', [uid])]"
help="My Sales Team(s)" />
</field>
<field name="date"/>
<newline/>
<group expand="0" string="Group By...">
<filter string="Partner" icon="terp-partner"
@@ -54,18 +54,6 @@
<field name="arch" type="xml">
<search string="Search">
<group>
<filter string="Year" icon="terp-go-year" name="year"
domain="[('create_date','&lt;=', time.strftime('%%Y-%%m-%%d')),('create_date','&gt;=',time.strftime('%%Y-01-01'))]"
help="Helpdesk requests occurred in current year"/>
<separator orientation="vertical" />
<filter string="Month" icon="terp-go-month" name="this_month"
domain="[('create_date','&lt;=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('create_date','&gt;=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
help="Helpdesk requests occurred in current month"/>
<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'))]"
help="Helpdesk requests occurred in last month"/>
<separator orientation="vertical" />
<filter string="New" icon="terp-check"
domain="[('state','=','draft')]" />
<filter string="Open" icon="terp-camera_test"
@@ -97,6 +85,7 @@
<field name="priority" string="Priority"/>
<field name="categ_id"/>
<newline/>
<field name="create_date"/>
<field name="date_closed" string="Close Date"/>
</group>
<newline/>