[IMP] marketing_campaign: remove the dependance to crm by extracting the demo data inside it own module

bzr revid: chs@openerp.com-20100629131723-md0apdrsou7yey95
This commit is contained in:
Christophe Simonis 2010-06-29 15:17:23 +02:00
parent f46f7a770b
commit 73bf8f19a8
5 changed files with 50 additions and 9 deletions

View File

@ -21,12 +21,11 @@
{
"name" : "",
"name" : "marketing_campaign",
"version" : "1.1",
"depends" : ["marketing",
"crm",
"document",
"email_template"
"document",
"email_template"
],
"author" : "OpenERP SA",
"category": 'Generic Modules/Marketing',
@ -37,6 +36,8 @@ are dynamic and multi-channels. The process:
miscelleanous actions, etc.
* Define segments that are selections of target people
* Launch your campaign to automate communications.
If you need demo data, you can install the module marketing_campaign_crm_demo.
""",
'website': 'http://www.openerp.com',
'init_xml': [],
@ -50,8 +51,7 @@ are dynamic and multi-channels. The process:
"security/ir.model.access.csv"
],
'demo_xml': [
'marketing_campaign_demo.xml',
],
],
'installable': True,
'active': False,
}

View File

@ -0,0 +1,41 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
{
"name" : "marketing_campaign_crm_demo",
"version" : "1.0",
"depends" : ["marketing_campaign",
"crm",
],
"author" : "OpenERP SA",
"category": 'Generic Modules/Marketing',
"description": """Demo data for the module marketing_campaign.""",
'website': 'http://www.openerp.com',
'init_xml': [],
'update_xml': [],
'demo_xml': [
'marketing_campaign_demo.xml',
],
'installable': True,
'active': False,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -19,7 +19,7 @@
<field eval="&quot;&quot;&quot;[]&quot;&quot;&quot;" name="domain"/>
<field name="parent_id" ref="document_directory_marketingcampaign"/>
<field eval="&quot;&quot;&quot;ressource&quot;&quot;&quot;" name="type"/>
<field name="ressource_type_id" ref="model_marketing_campaign"/>
<field name="ressource_type_id" ref="marketing_campaign.model_marketing_campaign"/>
</record>
<!-- Email tempalte -->
@ -163,7 +163,7 @@
<field name="type">ir.actions.report.xml</field>
<field name="model">crm.lead</field>
<field name="report_name">crm.lead.demo</field>
<field name="report_rml">marketing_campaign/report/crm_lead_mc_demo_report.rml</field>
<field name="report_rml">marketing_campaign_crm_demo/crm_lead_mc_demo_report.rml</field>
<field name="report_type">pdf</field>
</record>
@ -303,4 +303,4 @@
</record>
</data>
</openerp>
</openerp>