From 1d4290ff9d94b189fab866b285ee25acddf0c1e1 Mon Sep 17 00:00:00 2001 From: "DSH (Open ERP)" Date: Fri, 28 May 2010 17:17:13 +0530 Subject: [PATCH] [IMP] configuration wizard for marketing module : Done by PSO bzr revid: dsh@tinyerp.com-20100528114713-zgpkw2a6nfcxlhwj --- addons/marketing/__init__.py | 2 ++ addons/marketing/marketing_view.xml | 52 ++++++++++++++++++++++++++-- addons/marketing/marketing_wizard.py | 38 ++++++++++++++++++++ 3 files changed, 89 insertions(+), 3 deletions(-) create mode 100644 addons/marketing/marketing_wizard.py diff --git a/addons/marketing/__init__.py b/addons/marketing/__init__.py index 2aefd8b3c11..c83787a6ef7 100644 --- a/addons/marketing/__init__.py +++ b/addons/marketing/__init__.py @@ -19,5 +19,7 @@ # ############################################################################## +import marketing_wizard + # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/marketing/marketing_view.xml b/addons/marketing/marketing_view.xml index b920ce369fc..7a72f39c6eb 100644 --- a/addons/marketing/marketing_view.xml +++ b/addons/marketing/marketing_view.xml @@ -1,6 +1,52 @@ - - - \ No newline at end of file + + + + + marketing.installer.view + marketing.installer + form + + + +
+ Marketing Modules Installation +
+ + + Configure Your Marketing System + + + You can enhance OpenERP's basic Marketing support with a few additional OpenERP applications + + + + + + + + +
+
+
+ + + Marketing Modules Installation + ir.actions.act_window + marketing.installer + + form + form + new + + + + + 3 + + + + \ No newline at end of file diff --git a/addons/marketing/marketing_wizard.py b/addons/marketing/marketing_wizard.py new file mode 100644 index 00000000000..443fb09ed48 --- /dev/null +++ b/addons/marketing/marketing_wizard.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 . +# +############################################################################## + +from osv import fields, osv + +class marketing_installer(osv.osv_memory): + _name = 'marketing.installer' + _inherit = 'res.config.installer' + + _columns = { + # Generic modules + 'marketing_campaign':fields.boolean('Marketing Campaign', + help="Helps you to manage your marketing campaigns step by step."), + 'crm_profiling':fields.boolean('Crm Profile', + help="Helps you to perform segmentation within partners.") + } + +marketing_installer() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: