mirror of https://github.com/OCA/social.git
[IMP] mass_mailing_custom_unsubscribe_event: black, isort, prettier
parent
3cc6de9d55
commit
20a2c255aa
|
@ -4,15 +4,10 @@
|
||||||
"name": "Allow to unsubscribe discretely from an event",
|
"name": "Allow to unsubscribe discretely from an event",
|
||||||
"category": "Marketing",
|
"category": "Marketing",
|
||||||
"version": "12.0.1.0.1",
|
"version": "12.0.1.0.1",
|
||||||
"depends": [
|
"depends": ["event", "mass_mailing_custom_unsubscribe"],
|
||||||
"event",
|
|
||||||
"mass_mailing_custom_unsubscribe",
|
|
||||||
],
|
|
||||||
"author": "Tecnativa, Odoo Community Association (OCA)",
|
"author": "Tecnativa, Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/social",
|
"website": "https://github.com/OCA/social",
|
||||||
"data": [
|
"data": ["views/event_registration_views.xml"],
|
||||||
"views/event_registration_views.xml",
|
|
||||||
],
|
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"installable": True,
|
"installable": True,
|
||||||
"auto_install": True,
|
"auto_install": True,
|
||||||
|
|
|
@ -5,10 +5,11 @@ from odoo import fields, models
|
||||||
|
|
||||||
|
|
||||||
class EventRegistration(models.Model):
|
class EventRegistration(models.Model):
|
||||||
_inherit = 'event.registration'
|
_inherit = "event.registration"
|
||||||
|
|
||||||
opt_out = fields.Boolean(
|
opt_out = fields.Boolean(
|
||||||
string='Opt-Out',
|
string="Opt-Out",
|
||||||
help="If opt-out is checked, this registree has refused to receive "
|
help="If opt-out is checked, this registree has refused to receive "
|
||||||
"emails for mass mailing and marketing campaign.")
|
"emails for mass mailing and marketing campaign.",
|
||||||
|
)
|
||||||
# No need of email field, as it already exists
|
# No need of email field, as it already exists
|
||||||
|
|
Loading…
Reference in New Issue