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 33 Bruxelles @@ -291,14 +291,14 @@ - + Lucie Vonck Chaussée de Namur Grand-Rosière - + opportunity @@ -313,7 +313,7 @@ - + Université de Liège Place du 20Août @@ -321,7 +321,7 @@ - + opportunity @@ -336,7 +336,7 @@ - + Bank Wealthy and sons 1 rue Rockfeller Paris @@ -377,7 +377,7 @@ - + Dubois sprl Avenue de la Liberté 56 Brussels @@ -399,7 +399,7 @@ - + opportunity @@ -413,7 +413,7 @@ - + @@ -428,14 +428,14 @@ - + Axelor 12 rue Albert Einstein Champs 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 + + + + + + + + + + + +