diff --git a/addons/crm_todo/crm_todo_view.xml b/addons/crm_todo/crm_todo_view.xml
index 94d5b1a0cbe..c098f908b8a 100644
--- a/addons/crm_todo/crm_todo_view.xml
+++ b/addons/crm_todo/crm_todo_view.xml
@@ -46,13 +46,15 @@
- Todo List
+ My Tasks
project.task
- {'set_editable':True,'set_visible':True,'gtd':True,'user_invisible':True, 'search_default_user_id':uid, "search_default_current": 1, "search_default_open": 1, "lead_id": 1}
+ {'set_editable':True,'set_visible':True,'gtd':True,'user_invisible':True, "search_default_open": 1, "lead_id": 1}
+
+ [('user_id','=',uid)]
form
tree,form,calendar,gantt,graph,kanban
-
diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml
index f113d83814d..d85481a6e5e 100644
--- a/addons/project/project_view.xml
+++ b/addons/project/project_view.xml
@@ -414,7 +414,6 @@
-
@@ -467,7 +466,7 @@
project.task
search
-
+
diff --git a/addons/project_gtd/project_gtd.py b/addons/project_gtd/project_gtd.py
index d28e5b1dcd6..bec70779551 100644
--- a/addons/project_gtd/project_gtd.py
+++ b/addons/project_gtd/project_gtd.py
@@ -106,25 +106,17 @@ class project_task(osv.osv):
timebox_obj = self.pool.get('project.gtd.timebox')
if (res['type'] == 'search') and context.get('gtd', False):
tt = timebox_obj.browse(cr, uid, timebox_obj.search(cr,uid,[]), context=context)
- search_extended =''''''
- search_extended += '''''' % (_('Inbox'),)
- search_extended += ''''''
+ search_extended =''
for time in tt:
if time.icon:
icon = time.icon
else :
icon=""
- search_extended += ''''''
- search_extended += '''
-
-
- '''
+ search_extended += '''\n'''
+ search_extended +=''''''
+
+ res['arch'] = res['arch'].replace('', search_extended)
- res['arch'] = unicode(res['arch'], 'utf8').replace('', search_extended)
- attrs_sel = self.pool.get('project.gtd.context').name_search(cr, uid, '', [], context=context)
- context_id_info = self.pool.get('project.task').fields_get(cr, uid, ['context_id'], context=context)
- context_id_info['context_id']['selection'] = attrs_sel
- res['fields'].update(context_id_info)
return res
project_task()
diff --git a/addons/project_gtd/project_gtd_data.xml b/addons/project_gtd/project_gtd_data.xml
index 659b0fe9cb2..7d495023f87 100644
--- a/addons/project_gtd/project_gtd_data.xml
+++ b/addons/project_gtd/project_gtd_data.xml
@@ -18,10 +18,6 @@
This Week
terp-go-week
-
- This Month
- terp-go-month
-
Long Term
terp-project
diff --git a/addons/project_gtd/project_gtd_view.xml b/addons/project_gtd/project_gtd_view.xml
index a9166f7fbfa..69ef1c1e950 100644
--- a/addons/project_gtd/project_gtd_view.xml
+++ b/addons/project_gtd/project_gtd_view.xml
@@ -82,7 +82,7 @@
-
+
@@ -101,11 +101,40 @@
-
+
+ project.task.gtd.search
+ project.task
+ search
+ 50
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Todo List
+ My Tasks
project.task
- {'set_editable':True,'set_visible':True,'gtd':True,'user_invisible':True, 'search_default_user_id':uid, "search_default_draft": 1, "search_default_open": 1}
+
+ {'set_editable':True,'set_visible':True,'gtd':True,'user_invisible':True, "search_default_open": 1}
+ [('user_id','=',uid)]
form
tree,form,calendar,gantt,graph,kanban
diff --git a/addons/project_gtd/test/gtd_test.yml b/addons/project_gtd/test/gtd_test.yml
index 5c05dfd76cc..0583bc7e8e0 100644
--- a/addons/project_gtd/test/gtd_test.yml
+++ b/addons/project_gtd/test/gtd_test.yml
@@ -1,5 +1,5 @@
-
- Create a task 'Develop time management module' with monthly timebox
+ Create a task 'Develop time management module' with weekly timebox
-
!record {model: project.task, id: project_task_developtimemanagementmodule0}:
name: Develop time management module
@@ -7,7 +7,7 @@
project_id: project.project_project_22
remaining_hours: 15.0
state: draft
- timebox_id: project_gtd.timebox_monthly
+ timebox_id: project_gtd.timebox_weekly
-
@@ -36,12 +36,12 @@
sequence: 0.0
-
- Planify the task from monthly timebox to tomorrow timebox
+ Planify the task from weekly timebox to tomorrow timebox
-
!record {model: project.timebox.fill.plan, id: project_timebox_fill_plan_0}:
task_ids:
- project_task_developtimemanagementmodule0
- timebox_id: project_gtd.timebox_monthly
+ timebox_id: project_gtd.timebox_weekly
timebox_to_id: project_gtd_timebox_tomorrow1
@@ -75,4 +75,4 @@
Check task 'Develop time management module' is no more in tomorrow timebox
-
!assert {model: project.task, id: project_task_developtimemanagementmodule0, string: Task is not in tomorrow timebox}:
- - timebox_id.id != ref("project_gtd_timebox_tomorrow1")
\ No newline at end of file
+ - timebox_id.id != ref("project_gtd_timebox_tomorrow1")