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"/>
16 <record model="ir.ui.view" id="view_gtd_context_form">
17 <field name="name">project.gtd.context.form</field>
18 <field name="model">project.gtd.context</field>
19 <field name="type">form</field>
20 <field name="arch" type="xml">
21 <form string="Context" version="7.0">
24 <field name="sequence"/>
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 <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>
36 <menuitem name="Contexts" id="menu_open_gtd_time_contexts"
37 parent="project.menu_tasks_config" action="open_gtd_context_tree" groups="base.group_no_one"/>
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"/>
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" version="7.0">
58 <group col="4" string="Timebox Definition">
60 <field name="sequence"/>
67 <record model="ir.actions.act_window" id="open_gtd_timebox_tree">
68 <field name="name">Timeboxes</field>
69 <field name="res_model">project.gtd.timebox</field>
70 <field name="view_type">form</field>
71 <field name="view_mode">tree,form</field>
72 <field name="view_id" ref="view_gtd_timebox_tree"/>
73 <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>
76 <menuitem name="Timeboxes" id="menu_open_gtd_time_timeboxes" parent="project.menu_tasks_config" action="open_gtd_timebox_tree" groups="base.group_no_one"/>
78 <record model="ir.ui.view" id="project_task_tree">
79 <field name="name">project.task.tree.timebox</field>
80 <field name="model">project.task</field>
81 <field name="type">tree</field>
82 <field name="inherit_id" ref="project.view_task_tree2" />
83 <field name="arch" type="xml">
84 <field name="remaining_hours" position="after">
85 <field string="Timebox" name="timebox_id" invisible=" not context.get('gtd', False)"/>
86 <button name="prev_timebox" type="object" icon="gtk-go-back" string="Previous" states="draft,pending,open" invisible=" not context.get('gtd',False)"/>
87 <button name="next_timebox" type="object" icon="gtk-go-forward" string="Next" states="draft,pending,open" invisible=" not context.get('gtd',False)"/>
88 <field name="context_id" invisible="not context.get('context_show', False)" widget="selection"/>
89 <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)"/>
94 <record model="ir.ui.view" id="project_task">
95 <field name="name">project.task.form.timebox</field>
96 <field name="model">project.task</field>
97 <field name="type">form</field>
98 <field name="inherit_id" ref="project.view_task_form2" />
99 <field name="arch" type="xml">
100 <field name="progress" position="after">
101 <field name="context_id" widget="selection"/>
102 <field name="timebox_id" widget="selection"/>
107 <record id="view_task_gtd_search" model="ir.ui.view">
108 <field name="name">project.task.gtd.search</field>
109 <field name="model">project.task</field>
110 <field name="type">search</field>
111 <field name="priority">50</field>
112 <field name="arch" type="xml">
113 <search string="My Tasks">
114 <field name="name" string="My Tasks"/>
115 <separator orientation="vertical"/>
116 <filter name="open" string="In Progress" domain="[('state','in',('draft','open'))]" help="In Progress and draft tasks" icon="terp-camera_test"/>
117 <filter string="Pending" domain="[('state','=','pending')]" context="{'show_delegated':False}" help="Pending Tasks" icon="terp-gtk-media-pause"/>
118 <filter string="Inbox" domain="[('timebox_id','=', False)]" help="Tasks having no timebox assigned yet"/>
119 <group expand="0" string="Display">
120 <filter string="Show Context" name="context_show" context="{'context_show': True}" domain="[]" icon="terp-camera_test" help="Show the context field"/>
121 <filter string="Show Deadlines" context="{'deadline_visible': False}" domain="[]" help="Show only tasks having a deadline" icon="terp-gnome-cpu-frequency-applet+"/>
126 <record model="ir.actions.act_window" id="open_gtd_task">
127 <field name="name">My Tasks</field>
128 <field name="res_model">project.task</field>
129 <field name="search_view_id" ref="view_task_gtd_search"/>
130 <field name="context">{'set_editable':True,'set_visible':True,'gtd':True,'user_invisible':True, "search_default_open": 1}</field>
131 <field name="domain">[('user_id','=',uid)]</field>
132 <field name="view_type">form</field>
133 <field name="view_mode">tree,form,calendar,gantt,graph,kanban</field>
135 <menuitem action="open_gtd_task" id="menu_open_gtd_timebox_tree" parent="project.menu_project_management" sequence="10"/>