PURPOSE
Mass mailing is currently a bit messy. As SMS will be added as a way to notify
people in mass through SMS let us take this opportunity to somehow clean this
application: organization, light code cleaning, model renaming.
SPECIFICATIONS
Rename mail.mass_mailing.list and mail.mass_mailing.list to mailing.list
and mailing.list.merge. Rename mail.mass_mailing.contact to mailing.contact.
Rename mail.mailing_list.list_contact_rel to mailing.contact.subscription.
Rationale :
* those new names are easier to understand: mailing.list and mailing.contact
are less mail-related, especially taking into account that SMS will allow
to be less mail-oriented;
* those names are easier to read / find / understand;
* align wizard and sub-models naming with the main naming;
* have a mailing as first part of namespacing;
MIGRATION
mail.mass_mailing.list model -> mailing.list
mail.mass_mailing.list.merge model -> mailing.list.merge
mail.mass_mailing.contact model -> mailing.contact
mail.mass_mailing.list_contact_rel model -> mailing.contact.subscription
mail_mass_mailing_contact_list_rel table -> mailing_contact_list_rel (specific
case of a decorated m2m)
fields updated (no column change)
* mailing.list: subscription_contact_ids -> subscription_ids
LINKS
Task ID 2037906
Preparing task ID 1997464 (SMS addition in mass mailing)
PR #34938
26 lines
861 B
Python
26 lines
861 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Newsletter Subscribe Button',
|
|
'summary': 'Attract visitors to subscribe to mailing lists',
|
|
'description': """
|
|
This module brings a new building block with a mailing list widget to drop on any page of your website.
|
|
On a simple click, your visitors can subscribe to mailing lists managed in the Email Marketing app.
|
|
""",
|
|
'version': '1.0',
|
|
'category': 'Website',
|
|
'depends': ['website', 'mass_mailing'],
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
'views/website_mass_mailing_templates.xml',
|
|
'views/snippets_templates.xml',
|
|
'views/mailing_list_views.xml',
|
|
'views/website_mass_mailing_views.xml',
|
|
],
|
|
'qweb': [
|
|
'static/src/xml/*.xml',
|
|
],
|
|
'auto_install': True,
|
|
}
|