143 lines
7.5 KiB
XML
143 lines
7.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="view_scrum_sprint_dashboard_tree" model="ir.ui.view">
|
|
<field name="name">project.scrum.sprint.dashboard.tree</field>
|
|
<field name="model">project.scrum.sprint</field>
|
|
<field name="type">tree</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Sprints">
|
|
<field name="name"/>
|
|
<field name="project_id"/>
|
|
<field name="scrum_master_id"/>
|
|
<field name="product_owner_id" invisible="1"/>
|
|
<field name="date_start"/>
|
|
<field name="progress" widget="progressbar"/>
|
|
<field name="effective_hours" sum="Effective hours" widget="float_time"/>
|
|
<field name="expected_hours" sum="Expected hours" widget="float_time"/>
|
|
<field name="state"/>
|
|
<button type="object" string="Open" name="button_open" states="draft,pending" icon="gtk-ok"/>
|
|
<button type="object" string="Pending" name="button_pending" states="open" icon="gtk-media-pause"/>
|
|
<button type="object" string="Close" name="button_close" states="open,pending" icon="terp-dialog-close"/>
|
|
<button type="object" string="Set to Draft" name="button_draft" states="cancel,done" icon="gtk-convert"/>
|
|
<button name="%(project_scrum.report_scrum_sprint_burndown_chart)d" states="open,draft,close,cancel"
|
|
string="Burndown Chart" type="action" icon="gtk-print"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="view_task_progress_graph" model="ir.ui.view">
|
|
<field name="name">project.task.graph</field>
|
|
<field name="model">project.task</field>
|
|
<field name="type">graph</field>
|
|
<field name="arch" type="xml">
|
|
<graph string="Task Progress" type="bar">
|
|
<field name="sprint_id"/>
|
|
<field name="effective_hours" operator="+"/>
|
|
<field name="planned_hours" operator="+"/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
<record id="action_view_task_progress_graph" model="ir.actions.act_window">
|
|
<field name="name">Task Progress</field>
|
|
<field name="res_model">project.task</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">graph</field>
|
|
<field name="view_id" ref="view_task_progress_graph"/>
|
|
</record>
|
|
|
|
<record id="view_backlog_progress_graph" model="ir.ui.view">
|
|
<field name="name">project.scrum.sprint.graph</field>
|
|
<field name="model">project.scrum.product.backlog</field>
|
|
<field name="type">graph</field>
|
|
<field name="arch" type="xml">
|
|
<graph string="Backlog Progress" type="bar">
|
|
<field name="sprint_id"/>
|
|
<field name="effective_hours" operator="+"/>
|
|
<field name="expected_hours" operator="+"/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
<record id="action_view_backlog_progress_graph" model="ir.actions.act_window">
|
|
<field name="name">Backlog Progress</field>
|
|
<field name="res_model">project.scrum.product.backlog</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">graph</field>
|
|
</record>
|
|
<record id="action_sprint_all_dashboard_tree" model="ir.actions.act_window">
|
|
<field name="name">Sprints</field>
|
|
<field name="res_model">project.scrum.sprint</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_id" ref="view_scrum_sprint_dashboard_tree"/>
|
|
</record>
|
|
<record id="board_project_scrum_form" model="ir.ui.view">
|
|
<field name="name">board.project.form</field>
|
|
<field name="model">board.board</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="My Board">
|
|
<hpaned>
|
|
<child1>
|
|
<action colspan="4" height="220" name="%(action_sprint_all_dashboard_tree)d" string="Sprints" width="510"/>
|
|
</child1>
|
|
<child2>
|
|
<action colspan="4" height="220" name="%(action_view_task_progress_graph)d" string="Task Progress" width="510"/>
|
|
<action colspan="4" height="220" name="%(action_view_backlog_progress_graph)d" string="Backlog Progress" width="510"/>
|
|
</child2>
|
|
</hpaned>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="open_board_project_scrum" model="ir.actions.act_window">
|
|
<field name="name">Scrum Dashboard</field>
|
|
<field name="res_model">board.board</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="usage">menu</field>
|
|
<field name="view_id" ref="board_project_scrum_form"/>
|
|
</record>
|
|
<menuitem
|
|
id="menu_deshboard_scurm"
|
|
name="Scrum Dashboard" parent="project.next_id_86"
|
|
icon="terp-graph"
|
|
action="open_board_project_scrum"/>
|
|
|
|
<!-- For Project Dashboard -->
|
|
<record id="view_scrum_sprint_project_dashboard_tree" model="ir.ui.view">
|
|
<field name="name">project.scrum.sprint.project.dashboard.tree</field>
|
|
<field name="model">project.scrum.sprint</field>
|
|
<field name="type">tree</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Scrum Sprint">
|
|
<field name="name"/>
|
|
<field name="date_start"/>
|
|
<field name="progress" widget="progressbar"/>
|
|
<field name="effective_hours" widget="float_time"/>
|
|
<field name="expected_hours" widget="float_time"/>
|
|
<button name="%(project_scrum.report_scrum_sprint_burndown_chart)d"
|
|
string="Burndown Chart" type="action" icon="gtk-print"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="action_view_my_scrum_sprint_tree" model="ir.actions.act_window">
|
|
<field name="name">My Sprint</field>
|
|
<field name="res_model">project.scrum.sprint</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="domain">['|',('product_owner_id','=',uid),('scrum_master_id','=',uid)]</field>
|
|
<field name="view_id" ref="view_scrum_sprint_project_dashboard_tree"/>
|
|
</record>
|
|
<record id="board_my_scrum_sprint_form" model="ir.ui.view">
|
|
<field name="name">board.my.scrum.sprint.form.inherit</field>
|
|
<field name="model">board.board</field>
|
|
<field name="type">form</field>
|
|
<field name="inherit_id" ref="project.board_project_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="/form/hpaned/child1/action[@string='My Delegated Tasks']" position="after">
|
|
<action colspan="4" height="100" name="%(action_view_my_scrum_sprint_tree)d" string="My Sprint" />
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|