[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:
@@ -217,16 +217,6 @@
|
||||
help="All pending Helpdesk Request"
|
||||
/>
|
||||
<separator orientation="vertical"/>
|
||||
<filter icon="terp-go-today" string="Today"
|
||||
domain="[('date','>=',current_date), ('date','<=',current_date)]"
|
||||
help="Todays's Helpdesk Requests"
|
||||
/>
|
||||
<filter icon="terp-go-week"
|
||||
string="7 Days"
|
||||
help="Helpdesk requests during last 7 days"
|
||||
domain="[('date','<',current_date), ('date','>=',(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','<=', time.strftime('%%Y-%%m-%%d')),('create_date','>=',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','<=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('create_date','>=',(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','<=', (datetime.date.today() - relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),('create_date','>=',(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/>
|
||||
|
||||
Reference in New Issue
Block a user