[ADD] Added module mass_mailing_crm, that adds the lead and opportunities
as available for mass mailign campaigns. bzr revid: tde@openerp.com-20140317171634-4ucthtbaw542ealj
This commit is contained in:
parent
9845285781
commit
93284177d8
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2014-TODAY OpenERP SA (http://www.openerp.com)
|
||||
#
|
||||
# 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/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import models
|
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
{
|
||||
'name': 'Mass Mailing with CRM',
|
||||
'version': '1.0',
|
||||
'depends': ['mass_mailing', 'crm'],
|
||||
'author': 'OpenERP SA',
|
||||
'category': 'Hidden/Dependency',
|
||||
'description': """
|
||||
Bridge module between Mass Mailing and CRM
|
||||
""",
|
||||
'website': 'http://www.openerp.com',
|
||||
'data': [],
|
||||
'demo': [],
|
||||
'installable': True,
|
||||
'auto_install': True,
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mass_mailing
|
|
@ -0,0 +1,14 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from openerp.osv import osv
|
||||
|
||||
|
||||
class MassMailing(osv.Model):
|
||||
"""Inherit to add crm.lead objects available for mass mailing """
|
||||
_name = 'mail.mass_mailing'
|
||||
_inherit = 'mail.mass_mailing'
|
||||
|
||||
def _get_mailing_model(self, cr, uid, context=None):
|
||||
res = super(MassMailing, self)._get_mailing_model(cr, uid, context=context)
|
||||
res.append(('crm.lead', 'Leads / Opportunities'))
|
||||
return res
|
Loading…
Reference in New Issue