~openerp-dev/openobject-addons/6.0-opw-5629-jvo

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?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>