From ea101fa28aa5b42061b8454a4390fbd034789d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Fri, 10 Dec 2021 16:57:48 +0100 Subject: [PATCH] [IMP] base_location: Improve tests according to https://github.com/OCA/partner-contact/pull/1180. TT33047 --- base_location/tests/test_base_location.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base_location/tests/test_base_location.py b/base_location/tests/test_base_location.py index 1ae54ed88..840aa1389 100644 --- a/base_location/tests/test_base_location.py +++ b/base_location/tests/test_base_location.py @@ -212,6 +212,7 @@ class TestBaseLocation(common.SavepointCase): "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, @@ -224,7 +225,9 @@ class TestBaseLocation(common.SavepointCase): "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):