<field name="arch" type="xml">
<search string="Search">
<group>
- <filter string=" Year " icon="terp-go-year"
+ <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"/>
- <filter string=" Month " icon="terp-go-month" name="this_month"
+ <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 "
+ <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="Current" icon="terp-check"
- domain="[('state','in',('open','draft'))]" />
- <filter string="Won" icon="terp-check"
- domain="[('state','=','done')]" />
- <filter string="Lost" icon="terp-dialog-close"
+ <filter string="New" icon="terp-check"
+ domain="[('state','=','draft')]" />
+ <filter string="Open" icon="terp-camera_test"
+ domain="[('state','=','open')]" />
+ <filter string="Closed" icon="terp-dialog-close"
domain="[('state','=','cancel')]" />
<separator orientation="vertical" />
<field name="section_id" string="Sales Team"
<filter string="State" icon="terp-stock_effects-object-colorize"
domain="[]" context="{'group_by':'state'}" />
<separator orientation="vertical" />
- <filter string="Company" icon="terp-go-home"
+ <filter string="Company" icon="terp-go-home"
domain="[]"
groups="base.group_multi_company"
context="{'group_by':'company_id'}" />
<field name="res_model">crm.helpdesk.report</field>
<field name="view_type">form</field>
<field name="view_mode">tree,graph</field>
- <field name="context">{"search_default_User":1,"search_default_This Month":1,'group_by_no_leaf':1,'group_by':[]}</field>
+ <field name="context">{"search_default_year":1,"search_default_User":1,"search_default_this_month":1,'group_by_no_leaf':1,'group_by':[]}</field>
<field name="view_id" ref="view_report_crm_helpdesk_tree"/>
<field name="search_view_id" ref="view_report_crm_helpdesk_filter"/>
<field name="help">Have a general overview of all support requests by sorting them with specific criteria such as the processing time, number of requests answered, emails sent and costs.</field>
<field name="act_window_id" ref="action_report_crm_helpdesk"/>
</record>
+ <menuitem id="base.menu_project_report" name="Project"
+ groups="base.group_extended"
+ parent="base.menu_reporting" sequence="30"/>
+
<menuitem name="Helpdesk Analysis" action="action_report_crm_helpdesk"
groups="base.group_extended"
- id="menu_report_crm_helpdesks_tree" parent="base.next_id_64" sequence="7"/>
+ id="menu_report_crm_helpdesks_tree" parent="base.menu_project_report" sequence="20"/>
</data>
</openerp>