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",
|
||||
"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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue