social/mass_mailing_partner/models/mail_mass_mailing.py
Antonio Espinosa 6e50c7cb37 Link mail statistics to partner (#104)
[IMP] mass_mailing_partner: Link mail statistics to partner
2022-01-01 16:22:46 +01:00

17 lines
626 B
Python

# -*- coding: utf-8 -*-
# © 2015 Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
# © 2015 Antonio Espinosa <antonioea@antiun.com>
# © 2015 Javier Iniesta <javieria@antiun.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class MailMassMailingList(models.Model):
_inherit = 'mail.mass_mailing.list'
partner_mandatory = fields.Boolean(string="Mandatory Partner",
default=False)
partner_category = fields.Many2one(comodel_name='res.partner.category',
string="Partner Tag")