-
-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[16.0][MIG] mass_mailing_unique: Migration to 16.0
- Loading branch information
1 parent
bbaf4a0
commit e729495
Showing
4 changed files
with
15 additions
and
15 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
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 |
---|---|---|
|
@@ -53,7 +53,7 @@ def test_init_hook_list_mailing_contact(self): | |
"email": self.mailing_contact.email, | ||
} | ||
) | ||
self.env["mailing.contact"].flush() | ||
self.env["mailing.contact"].flush_model() | ||
with self.assertRaises(ValidationError): | ||
pre_init_hook(self.env.cr) | ||
|
||
|
@@ -67,7 +67,7 @@ def test_mailing_contact_unique_email_exact(self): | |
"email": "[email protected]", | ||
} | ||
) | ||
self.env["mailing.contact"].flush() | ||
self.env["mailing.contact"].flush_model() | ||
|
||
def test_mailing_contact_unique_email_same(self): | ||
"""Create a contact with the same email (not exact though)""" | ||
|
@@ -79,7 +79,7 @@ def test_mailing_contact_unique_email_same(self): | |
"email": "<John Doe> [email protected]", | ||
} | ||
) | ||
self.env["mailing.contact"].flush() | ||
self.env["mailing.contact"].flush_model() | ||
|
||
def test_mailing_contact_unique_email_ok(self): | ||
"""Create a contact with another email""" | ||
|
@@ -99,7 +99,7 @@ def test_mailing_list_unique_name_duplicated(self): | |
"name": self.mailing_list.name, | ||
} | ||
) | ||
self.env["mailing.list"].flush() | ||
self.env["mailing.list"].flush_model() | ||
|
||
def test_mailing_list_unique_name_ok(self): | ||
"""Create a mailing list with another name""" | ||
|