social/mass_mailing_custom_unsubscribe/models/mail_mass_mailing_list.py
Yajo aa7e32c2b1 [8.0][IMP][mass_mailing_custom_unsubscribe] Get reasons for unsubscription (#58)
* [8.0][IMP][mass_mailing_custom_unsubscribe] Get reasons for unsubscription.
2022-12-16 13:13:16 +01:00

16 lines
583 B
Python

# -*- coding: utf-8 -*-
# © 2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import fields, models
class MailMassMailing(models.Model):
_inherit = "mail.mass_mailing.list"
not_cross_unsubscriptable = fields.Boolean(
string="Don't show this list in the other unsubscriptions",
help="If you mark this field, this list won't be shown when "
"unsubscribing from other mailing list, in the section: "
"'Is there any other mailing list you want to leave?'")