-
-
Notifications
You must be signed in to change notification settings - Fork 637
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_partner: Migration to 17.0
- Loading branch information
Mohamed Osman
committed
Mar 27, 2024
1 parent
9266bf3
commit f4fd2b3
Showing
7 changed files
with
16 additions
and
33 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
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ def test_match_existing_contacts(self): | |
contact = self.create_mailing_contact( | ||
{"email": "[email protected]", "list_ids": [(6, 0, self.mailing_list.ids)]} | ||
) | ||
post_init_hook(self.cr, self.registry) | ||
post_init_hook(self.env) | ||
self.assertEqual(contact.partner_id.id, self.partner.id) | ||
self.check_mailing_contact_partner(contact) | ||
|
||
|
@@ -55,7 +55,7 @@ def test_create_mass_mailing_contact_with_subscription(self): | |
"company_name": "TestCompany", | ||
"country_id": country_cu.id, | ||
"tag_ids": [(6, 0, (category_8 | category_11).ids)], | ||
"subscription_list_ids": [ | ||
"subscription_ids": [ | ||
(0, 0, {"list_id": self.mailing_list.id}), | ||
(0, 0, {"list_id": self.mailing_list2.id}), | ||
], | ||
|
@@ -66,9 +66,7 @@ def test_create_mass_mailing_contact_with_subscription(self): | |
self.create_mailing_contact( | ||
{ | ||
"email": "[email protected]", | ||
"subscription_list_ids": [ | ||
(0, 0, {"list_id": self.mailing_list2.id}) | ||
], | ||
"subscription_ids": [(0, 0, {"list_id": self.mailing_list2.id})], | ||
} | ||
) | ||
|
||
|
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