diff --git a/addons/marketing/__init__.py b/addons/marketing/__init__.py index e68279cad8d..ff0c032da87 100644 --- a/addons/marketing/__init__.py +++ b/addons/marketing/__init__.py @@ -19,6 +19,6 @@ # ############################################################################## +import res_config # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - diff --git a/addons/marketing/__openerp__.py b/addons/marketing/__openerp__.py index c097c22b84e..8088a0a1a1b 100644 --- a/addons/marketing/__openerp__.py +++ b/addons/marketing/__openerp__.py @@ -38,7 +38,8 @@ Contains the installer for marketing-related modules. 'update_xml': [ 'security/marketing_security.xml', 'security/ir.model.access.csv', - 'marketing_view.xml' + 'marketing_view.xml', + 'res_config_view.xml', ], 'demo_xml': ['marketing_demo.xml'], 'installable': True, diff --git a/addons/marketing/res_config.py b/addons/marketing/res_config.py new file mode 100644 index 00000000000..7584f00e6b0 --- /dev/null +++ b/addons/marketing/res_config.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Business Applications +# Copyright (C) 2004-2012 OpenERP S.A. (). +# +# 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_config_settings(osv.osv_memory): + _name = 'marketing.config.settings' + _inherit = 'res.config.settings' + _columns = { + 'module_marketing_campaign': fields.boolean('Marketing Campaigns', + help="""Provides leads automation through marketing campaigns. + Campaigns can in fact be defined on any resource, not just CRM leads. + This installs the module marketing_campaign."""), + 'module_marketing_campaign_crm_demo': fields.boolean('Demo Data for Marketing Campaigns', + help="""Installs demo data like leads, campaigns and segments for Marketing Campaigns. + This installs the module marketing_campaign_crm_demo."""), + 'module_crm_profiling': fields.boolean('Track Customer Profile to Focus your Campaigns', + help="""Allows users to perform segmentation within partners. + This installs the module crm_profiling."""), + } + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/marketing/res_config_view.xml b/addons/marketing/res_config_view.xml new file mode 100644 index 00000000000..b7230aa65a7 --- /dev/null +++ b/addons/marketing/res_config_view.xml @@ -0,0 +1,36 @@ + + + + + Configure Marketing + marketing.config.settings + form + +
+
+
+ + + + + + + +
+
+
+ + + Configure Marketing + marketing.config.settings + form + inline + + + + +
+