[REM] completion in Gantt chart tasks and projects, not supported by OpenERP and...
[odoo/odoo.git] / addons / project_issue / board_project_issue_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record id="action_view_current_project_issue_tree" model="ir.actions.act_window">
6             <field name="name">Project issues</field>
7             <field name="res_model">project.issue</field>
8             <field name="view_type">form</field>
9             <field name="view_mode">tree,form</field>
10             <field name="domain">[('state','in',['draft','open'])]</field>
11            <field name="view_id" ref="project_issue.project_issue_tree_view"/>
12         </record>
13
14         <record id="action_view_pending_project_issue_tree" model="ir.actions.act_window">
15             <field name="name">Project issues</field>
16             <field name="res_model">project.issue</field>
17             <field name="view_type">form</field>
18             <field name="view_mode">tree,form</field>
19             <field name="domain">[('state','=','pending')]</field>
20            <field name="view_id" ref="project_issue.project_issue_tree_view"/>
21         </record>
22
23         <record id="action_project_issue_graph_state" model="ir.actions.act_window">
24             <field name="name">Project Issue</field>
25             <field name="res_model">project.issue.report</field>
26             <field name="view_type">form</field>
27             <field name="view_mode">graph</field>
28             <field name="domain">[]</field>
29             <field name="view_id" ref="project_issue.view_project_issue_report_graph"/>
30         </record>
31
32         <record id="view_project_issue_graph_stage" model="ir.ui.view">
33             <field name="name">project.issue.report.graph</field>
34             <field name="model">project.issue.report</field>
35             <field name="type">graph</field>
36             <field name="arch" type="xml">
37                 <graph orientation="vertical" string="Project Issue" type="bar">
38                     <field name="type_id"/>
39                     <field name="nbr" operator="+"/>
40                     <field group="True" name="user_id"/>
41                 </graph>
42             </field>
43         </record>
44
45         <record id="action_project_issue_graph_stage" model="ir.actions.act_window">
46             <field name="name">Project Issue</field>
47             <field name="res_model">project.issue.report</field>
48             <field name="view_type">form</field>
49             <field name="view_mode">graph</field>
50             <field name="domain">[]</field>
51             <field name="view_id" ref="view_project_issue_graph_stage"/>
52         </record>
53
54         <record id="board_project_issue_form" model="ir.ui.view">
55             <field name="name">board.project.issue.form</field>
56             <field name="model">board.board</field>
57             <field name="type">form</field>
58             <field name="arch" type="xml">
59                 <form string="Issues Dashboard">
60                     <board style="2-1">
61                         <column>
62                             <action name="%(action_view_current_project_issue_tree)d" string="Current Issues"/>
63                             <action name="%(action_view_pending_project_issue_tree)d" string="Pending Issues"/>
64                         </column>
65                         <column>
66                             <action name="%(action_project_issue_graph_state)d" string="Issues By State" />
67                             <action name="%(action_project_issue_graph_stage)d" string="Issues By Stage" />
68                         </column>
69                     </board>
70                 </form>
71             </field>
72         </record>
73
74         <record id="open_board_project_issue" model="ir.actions.act_window">
75             <field name="name">Project Issue Dashboard</field>
76             <field name="res_model">board.board</field>
77             <field name="view_type">form</field>
78             <field name="view_mode">form</field>
79             <field name="usage">menu</field>
80             <field name="view_id" ref="board_project_issue_form"/>
81         </record>
82         <menuitem id="menu_deshboard_project_issue" name="Project Issue Dashboard" parent="project.next_id_86"
83              icon="terp-graph"
84             action="open_board_project_issue"/>
85
86     <!-- For Project Dashboard -->
87             <record model="ir.ui.view" id="project_issue_board_tree_view">
88             <field name="name">Project Issue Board Tree</field>
89             <field name="model">project.issue</field>
90             <field name="type">tree</field>
91             <field name="arch" type="xml">
92                 <tree string="Issue Tracker Tree" colors="black:state=='open';blue:state=='pending';grey:state in ('cancel', 'done')">
93                     <field name="id"/>
94                     <field name="create_date"/>
95                     <field name="name"/>
96                     <field name="partner_id" groups="base.group_extended"/>
97                     <field name="project_id" />
98                     <field name="priority" string="Priority"/>
99                     <field name="type_id" widget="selection" readonly="1"/>
100                     <button name="prev_type" string="Previous" type="object" icon="gtk-go-back" help="Change to Previous Stage"/>
101                     <button name="next_type" string="Next" type="object" icon="gtk-go-forward" help="Change to Next Stage"/>
102                     <field name="version_id" widget="selection"/>
103                     <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
104                     <field name="state"/>
105                     <button name="case_cancel" string="Cancel" states="draft,open,pending" type="object" icon="gtk-cancel"/>
106                     <button name="case_close" string="Done" states="open,draft,pending" type="object" icon="gtk-jump-to"/>
107                     <button name="case_open" string="Open" states="draft,pending" type="object" icon="gtk-go-forward" help="To Do"/>
108                     <button name="case_pending" string="Pending" states="draft,open" type="object" icon="gtk-media-pause"/>
109                     <button name="case_escalate" string="Escalate" states="open,draft,pending" type="object" icon="gtk-go-up"/>
110                     <button name="case_reset" string="Reset to Draft" states="done,cancel" type="object" icon="gtk-convert"/>
111                     <field name="categ_id" invisible="1"/>
112                     <field name="task_id" invisible="1"/>
113                 </tree>
114             </field>
115         </record>
116         <record id="action_view_my_project_issue_tree" model="ir.actions.act_window">
117             <field name="name">My Project Issues</field>
118             <field name="res_model">project.issue</field>
119             <field name="view_type">form</field>
120             <field name="view_mode">tree,form</field>
121             <field name="domain">[('state','not in',('cancel','done')),('user_id','=',uid)]</field>
122            <field name="view_id" ref="project_issue_board_tree_view"/>
123         </record>
124          <record id="view_my_open_project_issue_graph" model="ir.ui.view">
125             <field name="name">my.open.project.issue.graph</field>
126             <field name="model">project.issue.report</field>
127             <field name="type">graph</field>
128             <field name="arch" type="xml">
129                 <graph orientation="vertical" string="My Open Project Issue" type="bar">
130                     <field name="creation_date"/>
131                     <field name="nbr" operator="+"/>
132                 </graph>
133             </field>
134         </record>
135         <record id="action_view_my_open_project_issue_tree" model="ir.actions.act_window">
136             <field name="name">My Open Project issues</field>
137             <field name="res_model">project.issue.report</field>
138             <field name="view_type">form</field>
139             <field name="view_mode">graph,tree,form,</field>
140             <field name="domain">[('state','=','open'),('user_id','=',uid)]</field>
141             <field name="context">{'default_user_id': uid}</field>
142            <field name="view_id" ref="view_my_open_project_issue_graph"/>
143         </record>
144        <record id="board_my_project_issue_form" model="ir.ui.view">
145             <field name="name">board.my.project.issue.form.inherit</field>
146             <field name="model">board.board</field>
147             <field name="type">form</field>
148             <field name="inherit_id" ref="project.board_project_form"/>
149             <field name="arch" type="xml">
150                 <xpath expr="/form/board/column/action[@string='My Delegated Tasks']" position="after">
151                         <action name="%(action_view_my_project_issue_tree)d" string="My Issues" creatable="true"/>
152                 </xpath>
153                 <xpath expr="/form/board/column/action[@string='My Remaining Hours by Project']" position="after">
154                         <action name="%(action_view_my_open_project_issue_tree)d" string="My Open Issues by Creation Date"/>
155                 </xpath>
156             </field>
157         </record>
158
159     </data>
160 </openerp>