[IMP] mass_mailing_custom_unsubscribe_event: black, isort, prettier

pull/1092/head
João Marques 2020-11-17 14:24:27 +00:00 committed by Luis Ernesto García Medina
parent 3cc6de9d55
commit 20a2c255aa
2 changed files with 6 additions and 10 deletions

View File

@ -4,15 +4,10 @@
"name": "Allow to unsubscribe discretely from an event",
"category": "Marketing",
"version": "12.0.1.0.1",
"depends": [
"event",
"mass_mailing_custom_unsubscribe",
],
"depends": ["event", "mass_mailing_custom_unsubscribe"],
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/social",
"data": [
"views/event_registration_views.xml",
],
"data": ["views/event_registration_views.xml"],
"license": "AGPL-3",
"installable": True,
"auto_install": True,

View File

@ -5,10 +5,11 @@ from odoo import fields, models
class EventRegistration(models.Model):
_inherit = 'event.registration'
_inherit = "event.registration"
opt_out = fields.Boolean(
string='Opt-Out',
string="Opt-Out",
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