diff --git a/addons/crm/crm_lead_demo.xml b/addons/crm/crm_lead_demo.xml
index 390932c9e0a..7b2e696e181 100644
--- a/addons/crm/crm_lead_demo.xml
+++ b/addons/crm/crm_lead_demo.xml
@@ -10,12 +10,12 @@
-
+
-
-
-
-
+
+
+
+
@@ -29,12 +29,12 @@
lead
-
+
-
-
-
-
+
+
+
+
@@ -50,9 +50,9 @@
lead
-
-
-
+
+
+
@@ -68,9 +68,9 @@
lead
-
-
-
+
+
+
@@ -87,10 +87,10 @@
lead
-
-
-
-
+
+
+
+
@@ -111,10 +111,10 @@
lead
-
-
-
-
+
+
+
+
@@ -131,10 +131,10 @@
lead
-
-
-
-
+
+
+
+
@@ -155,12 +155,12 @@
-
-
-
-
+
+
+
+
-
+
@@ -174,12 +174,12 @@
-
-
-
-
+
+
+
+
-
+
@@ -204,7 +204,7 @@
-
+
@@ -270,7 +270,7 @@
-
+ BalmerInc S.A.Rue des Palais 51, bte 33Bruxelles
@@ -291,14 +291,14 @@
-
+ Lucie VonckChaussée de NamurGrand-Rosière
-
+ opportunity
@@ -313,7 +313,7 @@
-
+ Université de LiègePlace du 20Août
@@ -321,7 +321,7 @@
-
+ opportunity
@@ -336,7 +336,7 @@
-
+ Bank Wealthy and sons1 rue RockfellerParis
@@ -377,7 +377,7 @@
-
+ Dubois sprlAvenue de la Liberté 56Brussels
@@ -399,7 +399,7 @@
-
+ opportunity
@@ -413,7 +413,7 @@
-
+
@@ -428,14 +428,14 @@
-
+ Axelor12 rue Albert EinsteinChamps sur Marne
-
+
@@ -458,7 +458,7 @@
-
+
@@ -480,7 +480,7 @@
-
+ opportunity
@@ -493,7 +493,7 @@
-
+ opportunity
diff --git a/addons/crm_todo/__init__.py b/addons/crm_todo/__init__.py
new file mode 100644
index 00000000000..891c71db7ff
--- /dev/null
+++ b/addons/crm_todo/__init__.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL ().
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+import crm_todo
diff --git a/addons/crm_todo/__openerp__.py b/addons/crm_todo/__openerp__.py
new file mode 100644
index 00000000000..f56e95281fd
--- /dev/null
+++ b/addons/crm_todo/__openerp__.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL ().
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+
+{
+ 'name': 'To Do List for CRM',
+ 'version': '1.0',
+ 'category': 'Sales',
+ 'description': """
+Todo list for CRM leads and opportunities.
+ """,
+ 'author': 'OpenERP SA',
+ 'depends': ['crm','project_gtd'],
+ 'update_xml': [
+ 'crm_todo_view.xml',
+ ],
+ 'demo': [
+ 'crm_todo_demo.xml',
+ ],
+}
diff --git a/addons/crm_todo/crm_todo.py b/addons/crm_todo/crm_todo.py
new file mode 100644
index 00000000000..ba7445ecef1
--- /dev/null
+++ b/addons/crm_todo/crm_todo.py
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL ().
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from osv import fields, osv
+
+class project_task(osv.osv):
+ _inherit = 'project.task'
+ _columns = {
+ 'lead_id': fields.many2one('crm.lead', 'Lead / Opportunity')
+ }
+
+class crm_todo(osv.osv):
+ _inherit = 'crm.lead'
+ _columns = {
+ 'task_ids': fields.one2many('project.task', 'lead_id', 'Tasks'),
+ }
+
+
+
diff --git a/addons/crm_todo/crm_todo_demo.xml b/addons/crm_todo/crm_todo_demo.xml
new file mode 100644
index 00000000000..eef41bdc472
--- /dev/null
+++ b/addons/crm_todo/crm_todo_demo.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/crm_todo/crm_todo_view.xml b/addons/crm_todo/crm_todo_view.xml
new file mode 100644
index 00000000000..94d5b1a0cbe
--- /dev/null
+++ b/addons/crm_todo/crm_todo_view.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+ Opportunities - Tasks
+ crm.lead
+ form
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ project.task.tree.crm
+ project.task
+ tree
+ 20
+
+
+
+
+
+
+
+
+
+
+ Todo List
+ 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}
+ form
+ tree,form,calendar,gantt,graph,kanban
+
+
+
+
+
+
diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml
index c0b6d6553a3..da35d9ae52d 100644
--- a/addons/project/project_view.xml
+++ b/addons/project/project_view.xml
@@ -398,9 +398,9 @@
-
+
-
+
+
@@ -513,11 +514,11 @@
tree,form,calendar,gantt,graph,kanban
- {"search_default_user_id":uid, "search_default_draft": 1, "search_default_open":1 }
+ {"search_default_draft": 1, "search_default_open":1 }A task represents a work that has to be done. Each user works in his own list of tasks where he can record his task work in hours. He can work and close the task itself or delegate it to another user. If you delegate a task to another user, you get a new task in pending state, which will be reopened when you have to review the work achieved. If you install the project_timesheet module, task work can be invoiced based on the project configuration. With the project_mrp module, sales orders can create tasks automatically when they are confirmed.
-
+
diff --git a/addons/project_gtd/project_gtd.py b/addons/project_gtd/project_gtd.py
index a3c9d48476b..d28e5b1dcd6 100644
--- a/addons/project_gtd/project_gtd.py
+++ b/addons/project_gtd/project_gtd.py
@@ -104,25 +104,22 @@ class project_task(osv.osv):
res = super(project_task,self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu)
search_extended = False
timebox_obj = self.pool.get('project.gtd.timebox')
- access_pool = self.pool.get('ir.model.access')
- if (res['type'] == 'search') and access_pool.check_groups(cr, uid, "project_gtd.group_project_getting"):
+ if (res['type'] == 'search') and context.get('gtd', False):
tt = timebox_obj.browse(cr, uid, timebox_obj.search(cr,uid,[]), context=context)
- search_extended ='''''' % (len(tt)+7,1,_('Getting Things Done'))
- search_extended += '''''' % (_('Inbox'),)
- search_extended += '''''' % (_('GTD'),)
+ search_extended =''''''
+ search_extended += '''''' % (_('Inbox'),)
search_extended += ''''''
for time in tt:
if time.icon:
icon = time.icon
else :
icon=""
- search_extended += ''''''
+ search_extended += ''''''
search_extended += '''
-
- '''
- if 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)
diff --git a/addons/project_gtd/project_gtd_data.xml b/addons/project_gtd/project_gtd_data.xml
index 126233104e2..2780cd0f8d0 100644
--- a/addons/project_gtd/project_gtd_data.xml
+++ b/addons/project_gtd/project_gtd_data.xml
@@ -1,8 +1,5 @@
-
- Project / Methodology / Getting Things Done
-
diff --git a/addons/project_gtd/project_gtd_view.xml b/addons/project_gtd/project_gtd_view.xml
index b92fc1a1fb8..a9166f7fbfa 100644
--- a/addons/project_gtd/project_gtd_view.xml
+++ b/addons/project_gtd/project_gtd_view.xml
@@ -31,7 +31,7 @@
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.
-
@@ -79,10 +79,10 @@
-
-
-
-
+
+
+
+
@@ -95,11 +95,22 @@
-
-
+
+
+
+
+ Todo List
+ 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}
+ form
+ tree,form,calendar,gantt,graph,kanban
+
+
+
+
diff --git a/addons/project_gtd/security/ir.model.access.csv b/addons/project_gtd/security/ir.model.access.csv
index 0398fbfb0ee..8e85047c51c 100644
--- a/addons/project_gtd/security/ir.model.access.csv
+++ b/addons/project_gtd/security/ir.model.access.csv
@@ -1,6 +1,4 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
-"access_project_gtd_context","project.gtd.context","model_project_gtd_context","group_project_getting",1,1,1,1
-"access_project_gtd_timebox","project.gtd.timebox","model_project_gtd_timebox","group_project_getting",1,1,1,1
"access_project_gtd_context_user","project.gtd.context project user","model_project_gtd_context","project.group_project_user",1,0,0,0
"access_project_gtd_timebox_user","project.gtd.timebox project user","model_project_gtd_timebox","project.group_project_user",1,0,0,0
"access_project_gtd_context_manager","project.gtd.context project manager","model_project_gtd_context","project.group_project_manager",1,1,1,1