[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9654 rev-id: dle@openerp...
[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="arch" type="xml">
8             <tree string="Context">
9                 <field name="sequence" invisible="1"/>
10                 <field name="name"/>
11             </tree>
12         </field>
13     </record>
14
15     <record model="ir.ui.view" id="view_gtd_context_form">
16         <field name="name">project.gtd.context.form</field>
17         <field name="model">project.gtd.context</field>
18         <field name="arch" type="xml">
19             <form string="Context" version="7.0">
20                 <group col="4">
21                     <field name="name"/>
22                     <field name="sequence"/>
23                 </group>
24             </form>
25         </field>
26     </record>
27
28     <record model="ir.actions.act_window" id="open_gtd_context_tree">
29         <field name="name">Contexts</field>
30         <field name="res_model">project.gtd.context</field>
31         <field name="help">Contexts are defined in the "Getting Things Done" methodology. It allows you to categorize your tasks according to the context in which they have to be done: at the office, at home, when I take my car, etc.</field>
32     </record>
33
34     <menuitem name="Contexts" id="menu_open_gtd_time_contexts"
35                 parent="project.menu_tasks_config" action="open_gtd_context_tree" groups="base.group_no_one"/>
36
37     <record model="ir.ui.view" id="view_gtd_timebox_tree">
38         <field name="name">project.gtd.timebox.tree</field>
39         <field name="model">project.gtd.timebox</field>
40         <field name="arch" type="xml">
41             <tree string="Timebox">
42                 <field name="sequence" invisible="1"/>
43                 <field name="name"/>
44                 <field name="icon"/>
45             </tree>
46         </field>
47     </record>
48
49     <record model="ir.ui.view" id="view_gtd_timebox_form">
50         <field name="name">project.gtd.timebox.form</field>
51         <field name="model">project.gtd.timebox</field>
52         <field name="arch" type="xml">
53             <form string="Timeboxes" version="7.0">
54                 <group col="4" string="Timebox Definition">
55                     <field name="name"/>
56                     <field name="sequence"/>
57                     <field name="icon"/>
58                 </group>
59             </form>
60         </field>
61     </record>
62
63     <record model="ir.actions.act_window" id="open_gtd_timebox_tree">
64         <field name="name">Timeboxes</field>
65         <field name="res_model">project.gtd.timebox</field>
66         <field name="view_type">form</field>
67         <field name="view_mode">tree,form</field>
68         <field name="view_id" ref="view_gtd_timebox_tree"/>
69         <field name="help">Timeboxes are defined in the "Getting Things Done" methodology. A timebox defines a period of time in order to categorize your tasks: today, this week, this month, long term.</field>
70     </record>
71
72     <menuitem name="Timeboxes" id="menu_open_gtd_time_timeboxes" parent="project.menu_tasks_config" action="open_gtd_timebox_tree" groups="base.group_no_one"/>
73
74     <record model="ir.ui.view" id="project_task_tree">
75         <field name="name">project.task.tree.timebox</field>
76         <field name="model">project.task</field>
77         <field name="inherit_id" ref="project.view_task_tree2" />
78         <field name="arch" type="xml">
79             <field name="remaining_hours" position="after">
80                 <field string="Timeframe" name="timebox_id" invisible=" not context.get('gtd', False)"/>
81                 <field name="context_id" invisible="not context.get('context_show', False)" widget="selection"/>
82             </field>
83         </field>
84     </record>
85
86     <record model="ir.ui.view" id="project_task">
87         <field name="name">project.task.form.timebox</field>
88         <field name="model">project.task</field>
89         <field name="inherit_id" ref="project.view_task_form2" />
90         <field name="arch" type="xml">
91             <field name="progress" position="after">
92                 <field name="context_id" widget="selection" options='{"no_open": True}'/>
93                 <field name="timebox_id" widget="selection" options='{"no_open": True}'  string="Timeframe"/>
94             </field>
95         </field>
96     </record>
97
98     <record id="view_task_gtd_search" model="ir.ui.view">
99         <field name="name">project.task.gtd.search</field>
100         <field name="model">project.task</field>
101         <field name="priority">50</field>
102         <field name="arch" type="xml">
103            <search string="My Tasks">
104                 <field name="name" string="My Tasks"/>
105                 <filter string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
106                 <separator/>
107                 <filter string="No Timebox" domain="[('timebox_id', '=', False)]" help="Tasks having no timebox assigned yet"/>
108                 <group expand="0" string="Display">
109                     <filter string="Show Context" name="context_show" context="{'context_show': True}" domain="[]" icon="terp-camera_test" help="Show the context field"/>
110                     <filter string="Show Deadlines" context="{'deadline_visible': False}" domain="[]" help="Show only tasks having a deadline" icon="terp-gnome-cpu-frequency-applet+"/>
111                 </group>
112                 <group expand="0" string="Group By...">
113                     <filter string="Stage" name="group_stage_id" context="{'group_by':'stage_id'}"/>
114                     <filter string="Timebox" name="group_timebox_id" context="{'group_by':'timebox_id'}"/>
115                 </group>
116             </search>
117         </field>
118     </record>
119     <record model="ir.actions.act_window" id="open_gtd_task">
120         <field name="name">My Tasks</field>
121         <field name="res_model">project.task</field>
122         <field name="search_view_id" ref="view_task_gtd_search"/>
123         <field name="context">{'set_editable':True,'set_visible':True,'gtd':True,'user_invisible':True, "search_default_open": 1}</field>
124         <field name="domain">[('user_id','=',uid)]</field>
125         <field name="view_type">form</field>
126         <field name="view_mode">kanban,tree,form,calendar,gantt,graph</field>
127     </record>
128     <menuitem action="open_gtd_task" id="menu_open_gtd_timebox_tree" parent="project.menu_project_management" sequence="10"/>
129
130
131     </data>
132 </openerp>