Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][FW] base_location: Remove zip_id field to _address_fields() function #1914

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions base_location/tests/test_base_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def test_partner_address_field_sync(self):
"is_company": True,
"street": "123 Fake St.",
"city": "Springfield",
"city_id": self.barcelona.city_id.id,
"state_id": self.barcelona.state_id.id,
"country_id": self.barcelona.country_id.id,
"zip_id": self.barcelona.id,
Expand All @@ -214,7 +215,9 @@ def test_partner_address_field_sync(self):
"parent_id": parent.id,
}
)
parent = Form(parent)
parent.zip_id = self.lausanne
parent.save()
self.assertEqual(contact.zip_id, self.lausanne, "Contact should be synced")

def test_display_name(self):
Expand Down
Loading