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

bzr revid: ged@openerp.com-20131231145325-9rb3td76i454ptlx
This commit is contained in:
Gery Debongnie
2013-12-31 15:53:25 +01:00
parent 2505af2bc6
commit 892e54111b
2 changed files with 4 additions and 53 deletions
+2 -18
View File
@@ -2,27 +2,11 @@
<openerp>
<data>
<record id="view_task_history_tree" model="ir.ui.view">
<field name="name">project.task.history.cumulative.tree</field>
<field name="model">project.task.history.cumulative</field>
<field name="arch" type="xml">
<tree string="Tasks's Cumulative Flow" create="false">
<field name="date"/>
<field name="project_id"/>
<field name="task_id"/>
<field name="type_id"/>
<field name="user_id"/>
<field name="remaining_hours"/>
<field name="kanban_state"/>
</tree>
</field>
</record>
<record id="view_task_history_graph" model="ir.ui.view">
<field name="name">project.task.history.cumulative.graph</field>
<field name="model">project.task.history.cumulative</field>
<field name="arch" type="xml">
<graph string="Project Tasks" type="bar" stacked="True">
<graph string="Project Tasks" type="pivot" stacked="True">
<field name="date" type="row"/>
<field name="type_id" type="row"/>
<field name="planned_hours" type="measure"/>
@@ -55,7 +39,7 @@
<field name="name">Cumulative Flow</field>
<field name="res_model">project.task.history.cumulative</field>
<field name="view_type">form</field>
<field name="view_mode">graph,tree</field>
<field name="view_mode">graph</field>
<field name="view_id" ref="view_task_history_graph"/>
<field name="filter" eval="False"/>
<field name="context">{"search_default_open":1, "search_default_this_month": 1}</field>
+2 -35
View File
@@ -6,44 +6,11 @@
groups="project.group_project_manager"
parent="base.menu_reporting" sequence="25"/>
<record id="view_task_project_user_tree" model="ir.ui.view">
<field name="name">report.project.task.user.tree</field>
<field name="model">report.project.task.user</field>
<field name="arch" type="xml">
<tree string="Tasks Analysis" create="false">
<field name="name" invisible="1"/>
<field name="project_id" invisible="1"/>
<field name="stage_id" invisible="1"/>
<field name="user_id" invisible="1"/>
<field name="date_deadline" invisible="1"/>
<field name="date_start" invisible="1"/>
<field name="date_end" invisible="1"/>
<field name="date_last_stage_update" invisible="1"/>
<field name="company_id" invisible="1" groups="base.group_multi_company"/>
<field name="partner_id" invisible="1"/>
<field name="day" invisible="1"/>
<field name="month" invisible="1"/>
<field name="year" invisible="1"/>
<field name="nbr" sum='# of tasks'/>
<field name="no_of_days" sum="# of Days"/>
<field name="total_hours" sum='Total Hours'/>
<field name="hours_planned" sum='Planned Hours'/>
<field name="remaining_hours" sum='Remaining Hours'/>
<field name="hours_effective" sum='Effective Hours'/>
<field name="hours_delay" sum='Avg. Plan.-Eff.'/>
<field name="opening_days" sum='Days to Open'/>
<field name="closing_days" sum='Days to Close'/>
<field name="delay_endings_days" sum='OverPass delay'/>
<field name="progress" sum='Progress' widget='progressbar'/>
</tree>
</field>
</record>
<record id="view_task_project_user_graph" model="ir.ui.view">
<field name="name">report.project.task.user.graph</field>
<field name="model">report.project.task.user</field>
<field name="arch" type="xml">
<graph string="Tasks Analysis" type="bar">
<graph string="Tasks Analysis" type="pivot">
<field name="name" type="row"/>
<field name="no_of_days" type="measure"/>
</graph>
@@ -90,7 +57,7 @@
<field name="name">Tasks Analysis</field>
<field name="res_model">report.project.task.user</field>
<field name="view_type">form</field>
<field name="view_mode">tree,graph</field>
<field name="view_mode">graph</field>
<field name="search_view_id" ref="view_task_project_user_search"/>
<field name="context">{'search_default_year':1,'search_default_project':1,'group_by_no_leaf':1,'group_by':[]}</field>
<field name="help">This report allows you to analyse the performance of your projects and users. You can analyse the quantities of tasks, the hours spent compared to the planned hours, the average number of days to open or close a task, etc.</field>