forked from OCA/social
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] mass_mailing_unique: Migration to 14.0.
- Loading branch information
1 parent
2b628b5
commit 917c03b
Showing
18 changed files
with
169 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
# Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis | ||
# Copyright 2016 Tecnativa - Vicent Cubells | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import mail_mass_mailing_contact | ||
from . import mail_mass_mailing_list | ||
from . import mail_mass_mailing_list_contact_rel | ||
from . import mass_mailing | ||
from . import mailing_contact | ||
from . import mailing_list |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
mass_mailing_unique/models/mail_mass_mailing_list_contact_rel.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2018 Tecnativa - Ernesto Tejeda | ||
# Copyright 2021 Camptocamp - Iván Todorovich | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import models | ||
|
||
|
||
class MailingContact(models.Model): | ||
_inherit = "mailing.contact" | ||
|
||
_sql_constraints = [ | ||
( | ||
"unique_email", | ||
"UNIQUE(email_normalized)", | ||
"There's already a contact with this email address", | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis | ||
# Copyright 2016 Tecnativa - Vicent Cubells | ||
# Copyright 2021 Camptocamp - Iván Todorovich | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import models | ||
|
||
|
||
class MailingList(models.Model): | ||
_inherit = "mailing.list" | ||
|
||
_sql_constraints = [ | ||
( | ||
"unique_name", | ||
"UNIQUE(name)", | ||
"Cannot have more than one lists with the same name.", | ||
) | ||
] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ | |
* Vicent Cubells | ||
* Pedro M. Baeza | ||
* Ernesto Tejeda | ||
* `Camptocamp <https://www.camptocamp.com>`_ | ||
|
||
* Iván Todorovich <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
This module extends the functionality of mass mailing lists to disable | ||
duplicate entries in list names and contact emails per list. | ||
duplicate entries in list names and contact emails. | ||
|
||
This way you will avoid conflicts when importing contacts to a list that has a | ||
duplicated name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Before installing this module, you need to: | ||
|
||
* Remove all duplicated list names. | ||
* Remove all duplicated emails in each list. | ||
* Remove all duplicated emails in mailing contacts. |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.