[IMP] project: add pivot views next to graph views
The graph view has been splitted into pivot/graph view. This commit add a pivot view whenever a graph view was defined.
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
<record id="act_project_project_2_project_task_all" model="ir.actions.act_window">
|
||||
<field name="name">Tasks</field>
|
||||
<field name="res_model">project.task</field>
|
||||
<field name="view_mode">kanban,tree,form,calendar,gantt,graph</field>
|
||||
<field name="view_mode">kanban,tree,form,calendar,gantt,pivot,graph</field>
|
||||
<field name="context">{
|
||||
'search_default_project_id': [active_id],
|
||||
'default_project_id': active_id,
|
||||
@@ -612,13 +612,24 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_project_task_pivot" model="ir.ui.view">
|
||||
<field name="name">project.task.pivot</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="arch" type="xml">
|
||||
<pivot string="Project Tasks">
|
||||
<field name="project_id" type="row"/>
|
||||
<field name="stage_id" type="col"/>
|
||||
</pivot>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_project_task_graph" model="ir.ui.view">
|
||||
<field name="name">project.task.graph</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Project Tasks" type="bar">
|
||||
<field name="project_id" type="row"/>
|
||||
<field name="stage_id" type="row"/>
|
||||
<graph string="Project Tasks">
|
||||
<field name="project_id"/>
|
||||
<field name="stage_id"/>
|
||||
</graph>
|
||||
</field>
|
||||
</record>
|
||||
@@ -639,7 +650,7 @@
|
||||
<record id="action_view_task" model="ir.actions.act_window">
|
||||
<field name="name">Tasks</field>
|
||||
<field name="res_model">project.task</field>
|
||||
<field name="view_mode">kanban,tree,form,calendar,gantt,graph</field>
|
||||
<field name="view_mode">kanban,tree,form,calendar,gantt,pivot,graph</field>
|
||||
<field name="search_view_id" ref="view_task_search_form"/>
|
||||
<field name="help" type="html">
|
||||
<p>
|
||||
|
||||
@@ -2,17 +2,28 @@
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="view_task_history_pivot" model="ir.ui.view">
|
||||
<field name="name">project.task.history.cumulative.pivot</field>
|
||||
<field name="model">project.task.history.cumulative</field>
|
||||
<field name="arch" type="xml">
|
||||
<pivot string="Project Tasks" disable_linking="True">
|
||||
<field name="type_id" type="row"/>
|
||||
<field name="kanban_state" type="row"/>
|
||||
<field name="nbr_tasks" type="measure"/>
|
||||
<field name="planned_hours" type="measure"/>
|
||||
<field name="remaining_hours" type="measure"/>
|
||||
</pivot>
|
||||
</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">
|
||||
<field name="type_id" type="row"/>
|
||||
<field name="kanban_state" type="row"/>
|
||||
<field name="date" interval="month" type="col"/>
|
||||
<graph string="Project Tasks">
|
||||
<field name="type_id"/>
|
||||
<field name="kanban_state"/>
|
||||
<field name="nbr_tasks" type="measure"/>
|
||||
<field name="planned_hours" type="measure"/>
|
||||
<field name="remaining_hours" type="measure"/>
|
||||
</graph>
|
||||
</field>
|
||||
</record>
|
||||
@@ -51,8 +62,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</field>
|
||||
<field name="view_id" ref="view_task_history_graph"/>
|
||||
<field name="view_mode">pivot,graph</field>
|
||||
<field name="filter" eval="False"/>
|
||||
<field name="context">{"search_default_open":1, "search_default_this_month": 1}</field>
|
||||
</record>
|
||||
|
||||
@@ -6,6 +6,16 @@
|
||||
groups="project.group_project_manager"
|
||||
parent="base.menu_reporting" sequence="5"/>
|
||||
|
||||
<record id="view_task_project_user_pivot" model="ir.ui.view">
|
||||
<field name="name">report.project.task.user.pivot</field>
|
||||
<field name="model">report.project.task.user</field>
|
||||
<field name="arch" type="xml">
|
||||
<pivot string="Tasks Analysis" display_quantity="true" disable_linking="True">
|
||||
<field name="project_id" type="row"/>
|
||||
</pivot>
|
||||
</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>
|
||||
@@ -74,7 +84,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">graph</field>
|
||||
<field name="view_mode">pivot,graph</field>
|
||||
<field name="search_view_id" ref="view_task_project_user_search"/>
|
||||
<field name="context">{'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>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<field name="name">Issues</field>
|
||||
<field name="res_model">project.issue</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">kanban,tree,calendar,form,graph</field>
|
||||
<field name="view_mode">kanban,tree,calendar,form,pivot,graph</field>
|
||||
<field name="view_id" eval="False"/>
|
||||
<field name="domain" eval=""/>
|
||||
<field name="search_view_id" ref="view_project_issue_filter"/>
|
||||
|
||||
@@ -245,6 +245,17 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="project_issue_pivot_view">
|
||||
<field name="name">Project Issue Tracker Pivot</field>
|
||||
<field name="model">project.issue</field>
|
||||
<field name="arch" type="xml">
|
||||
<pivot string="Project Issues">
|
||||
<field name="project_id" type="row"/>
|
||||
<field name="stage_id" type="col"/>
|
||||
</pivot>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="project_issue_graph_view">
|
||||
<field name="name">Project Issue Tracker Graph</field>
|
||||
<field name="model">project.issue</field>
|
||||
|
||||
@@ -1,11 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="view_project_issue_report_pivot" model="ir.ui.view">
|
||||
<field name="name">project.issue.report.pivot</field>
|
||||
<field name="model">project.issue.report</field>
|
||||
<field name="arch" type="xml">
|
||||
<pivot string="Project Issue" disable_linking="True">
|
||||
<field name="project_id" type="row"/>
|
||||
<field name="create_date" interval="month" type="col"/>
|
||||
<field name="nbr" type="measure"/>
|
||||
</pivot>
|
||||
</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="pivot" stacked="True">
|
||||
<graph string="Project Issue">
|
||||
<field name="project_id" type="row"/>
|
||||
<field name="create_date" interval="month" type="col"/>
|
||||
<field name="nbr" type="measure"/>
|
||||
@@ -57,19 +69,12 @@
|
||||
<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</field>
|
||||
<field name="view_mode">pivot,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_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_graph">
|
||||
<field name="sequence" eval="2"/>
|
||||
<field name="view_mode">graph</field>
|
||||
<field name="view_id" ref="view_project_issue_report_graph"/>
|
||||
<field name="act_window_id" ref="action_project_issue_report"/>
|
||||
</record>
|
||||
<menuitem action="action_project_issue_report" id="menu_project_issue_report_tree"
|
||||
parent="base.menu_project_report"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user