[IMP] removes old tree view in reporting and replaces it by the new graph view in pivot mode by default (addon project_issue)

bzr revid: ged@openerp.com-20131231145953-8jo2yrf64xa3hdnb
This commit is contained in:
Gery Debongnie
2013-12-31 15:59:53 +01:00
parent 892e54111b
commit b201e0d111
@@ -1,44 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Report for project issue -->
<record id="view_project_issue_report_tree" model="ir.ui.view">
<field name="name">project.issue.report.tree</field>
<field name="model">project.issue.report</field>
<field name="arch" type="xml">
<tree string="Issues Analysis" create="false">
<field name="name" invisible="1"/>
<field name="month" invisible="1"/>
<field name="project_id" invisible="1"/>
<field name="stage_id" invisible="1"/>
<field name="version_id" string="Version" invisible="1"/>
<field name="priority" invisible="1"/>
<field name="company_id" invisible="1" groups="base.group_multi_company"/>
<field name="section_id" invisible="1" groups="base.group_multi_salesteams"/>
<field name="user_id" invisible="1"/>
<field name="channel_id" invisible="1"/>
<field name="partner_id" invisible="1"/>
<field name="task_id" invisible="1"/>
<field name="date_closed" invisible="1"/>
<field name="date_last_stage_update" invisible="1"/>
<field name="day" invisible="1"/>
<field name="nbr" string="#Project Issues" sum="#Number of Project Issues"/>
<field name="delay_open" avg="Avg Opening Delay"/>
<field name="delay_close" avg="Avg Closing Delay"/>
<field name="working_hours_open" avg="Open Working Hours"/>
<field name="working_hours_close" avg="Close Working hours"/>
<field name="email" sum="# Emails"/>
</tree>
</field>
</record>
<record id="view_project_issue_report_graph" model="ir.ui.view">
<field name="name">project.issue.report.graph</field>
<field name="model">project.issue.report</field>
<field name="arch" type="xml">
<graph orientation="horizontal" string="Project Issue" type="bar">
<field name="nbr" operator="+"/>
<field name="user_id" group="True"/>
<field name="stage_id" group="True"/>
<graph orientation="horizontal" string="Project Issue" type="pivot" stacked="True">
<field name="nbr" type="measure"/>
<field name="user_id" type="row"/>
<field name="stage_id" type="row"/>
</graph>
</field>
</record>
@@ -81,20 +51,13 @@
<field name="name">Issues Analysis</field>
<field name="res_model">project.issue.report</field>
<field name="view_type">form</field>
<field name="view_mode">graph,tree</field>
<field name="view_mode">graph</field>
<field name="context">{'search_default_year':1,'search_default_This Month':1,'search_default_project':1,'group_by_no_leaf':1,'group_by':[]}</field>
<field name="view_id" ref="view_project_issue_report_tree"/>
<field name="view_id" ref="view_project_issue_report_graph"/>
<field name="search_view_id" ref="view_project_issue_report_filter"/>
<field name="help">This report on the project issues allows you to analyse the quality of your support or after-sales services. You can track the issues per age. You can analyse the time required to open or close an issue, the number of email to exchange and the time spent on average by issues.</field>
</record>
<record model="ir.actions.act_window.view" id="action_project_issue_report_tree">
<field name="sequence" eval="1"/>
<field name="view_mode">tree</field>
<field name="view_id" ref="view_project_issue_report_tree"/>
<field name="act_window_id" ref="action_project_issue_report"/>
</record>
<record model="ir.actions.act_window.view" id="action_project_issue_report_graph">
<field name="sequence" eval="2"/>
<field name="view_mode">graph</field>