You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
649 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
  3. # Copyright 2015 Antonio Espinosa <antonio.espinosa@tecnativa.com>
  4. # Copyright 2015 Javier Iniesta <javieria@antiun.com>
  5. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. from odoo import fields, models
  7. class MailMassMailingList(models.Model):
  8. _inherit = 'mail.mass_mailing.list'
  9. partner_mandatory = fields.Boolean(string="Mandatory Partner",
  10. default=False)
  11. partner_category = fields.Many2one(comodel_name='res.partner.category',
  12. string="Partner Tag")