[IMP] clean project_* code (DHS)
[odoo/odoo.git] / addons / project_gtd / project_gtd_view.xml
1 <?xml version="1.0" ?>
2 <openerp>
3     <data>
4     <record model="ir.ui.view" id="view_gtd_context_tree">
5         <field name="name">project.gtd.context.tree</field>
6         <field name="model">project.gtd.context</field>
7         <field name="type">tree</field>
8         <field name="arch" type="xml">
9             <tree string="Context">
10                 <field name="sequence" invisible="1"/>
11                 <field name="name" select="1"/>
12                 <field name="project_default_id" select="1"/>
13             </tree>
14         </field>
15     </record>
16
17     <record model="ir.ui.view" id="view_gtd_context_form">
18         <field name="name">project.gtd.context.form</field>
19         <field name="model">project.gtd.context</field>
20         <field name="type">form</field>
21         <field name="arch" type="xml">
22             <form string="Context">
23                 <field name="name"/>
24                 <field name="sequence"/>
25                 <field name="project_default_id"/>
26             </form>
27         </field>
28     </record>
29
30     <record model="ir.actions.act_window" id="open_gtd_context_tree">
31         <field name="name">Contexts</field>
32         <field name="res_model">project.gtd.context</field>
33     </record>
34
35 <!--    <menuitem name="Time Management" id="menu_open_gtd_time" parent="project.menu_definitions" groups="group_project_getting"/>-->
36     <menuitem name="Contexts" id="menu_open_gtd_time_contexts" groups="group_project_getting" 
37                 parent="project.menu_tasks_config" action="open_gtd_context_tree"/>
38
39     <record model="ir.ui.view" id="view_gtd_timebox_tree">
40         <field name="name">project.gtd.timebox.tree</field>
41         <field name="model">project.gtd.timebox</field>
42         <field name="type">tree</field>
43         <field name="arch" type="xml">
44             <tree string="Timebox">
45                 <field name="sequence" invisible="1"/>
46                 <field name="name"/>
47                 <field name="icon"/>
48             </tree>
49         </field>
50     </record>
51
52     <record model="ir.ui.view" id="view_gtd_timebox_form">
53         <field name="name">project.gtd.timebox.form</field>
54         <field name="model">project.gtd.timebox</field>
55         <field name="type">form</field>
56         <field name="arch" type="xml">
57             <form string="Timeboxes">
58                 <separator string="Timebox Definition" colspan="4"/>
59                 <field name="name"/>
60                 <field name="sequence"/>
61                 <field name="icon"/>
62             </form>
63         </field>
64     </record>
65
66     <record model="ir.actions.act_window" id="open_gtd_timebox_tree">
67         <field name="name">Timeboxes</field>
68         <field name="res_model">project.gtd.timebox</field>
69         <field name="view_type">form</field>
70         <field name="view_mode">tree,form</field>
71         <field name="view_id" ref="view_gtd_timebox_tree"/>
72     </record>
73
74     <menuitem name="Timeboxes" id="menu_open_gtd_time_timeboxes" parent="project.menu_tasks_config" action="open_gtd_timebox_tree"/>
75
76     <record model="ir.ui.view" id="project_task_tree">
77         <field name="name">project.task.tree.timebox</field>
78         <field name="model">project.task</field>
79         <field name="type">tree</field>
80         <field name="inherit_id" ref="project.view_task_tree2" />
81         <field name="arch" type="xml">
82             <field name="remaining_hours" position="after">
83                 <field string="Timebox" name="timebox_id" groups="project_gtd.group_project_getting" invisible=" not context.get('set_visible',True)"/>
84                 <button name="prev_timebox" type="object" icon="gtk-go-back" string="Previous" states="draft,pending,open" groups="project_gtd.group_project_getting" invisible=" not context.get('set_visible',True)"/>
85                 <button name="next_timebox" type="object" icon="gtk-go-forward" string="Next" states="draft,pending,open" groups="project_gtd.group_project_getting" invisible=" not context.get('set_visible',False)"/>
86                 <button name="do_reopen" states="done,cancelled" string="Reactivate" type="object" icon="gtk-convert" help="For reopening the tasks" invisible="not context.get('set_visible',False)"/>
87             </field>
88         </field>
89     </record>
90
91     <record model="ir.ui.view" id="project_task">
92         <field name="name">project.task.form.timebox</field>
93         <field name="model">project.task</field>
94         <field name="type">form</field>
95         <field name="inherit_id" ref="project.view_task_form2" />
96         <field name="arch" type="xml">
97             <field name="progress" position="after">
98                 <field name="context_id" widget="selection" groups="project_gtd.group_project_getting"/>
99                 <field name="timebox_id" select="1" groups="project_gtd.group_project_getting"/>
100             </field>
101         </field>
102     </record>
103     </data>
104 </openerp>