From dd603ccfb7e84cc2e26eb15db0ff8e06ad144155 Mon Sep 17 00:00:00 2001 From: Alvaro Fuentes Date: Mon, 7 Jul 2025 12:04:11 +0200 Subject: [PATCH] [IMP] base/tests: remove `company_name` field Adapt the util tests. COM PR: odoo/odoo#211043 ENT PR: odoo/enterprise#86089 Upgrade: odoo/upgrade#7724 --- src/base/tests/test_util.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/base/tests/test_util.py b/src/base/tests/test_util.py index 0bf383b8a..b2670e540 100644 --- a/src/base/tests/test_util.py +++ b/src/base/tests/test_util.py @@ -2363,8 +2363,8 @@ def test_assert_updated(self): # when ids has multiple records, all records should be updated with self.assertUpdated("res_partner", ids=[p1.id, p2.id]): - p1.company_name = "Survey Corps" - p2.company_name = "Survey Corps" + p1.city = "Survey Corps" + p2.city = "Survey Corps" util.flush(p1) util.flush(p2) with self.assertRaises(AssertionError), self.assertUpdated("res_partner", ids=[p1.id, p2.id]): @@ -2400,12 +2400,12 @@ def test_assert_not_updated(self): # when ids has a record, only that record should not be updated with self.assertNotUpdated("res_partner", ids=[p2.id]): - p1.company_name = "Survey Corps" + p1.city = "Survey Corps" util.flush(p1) # when ids has multiple records, none of them should be updated with self.assertRaises(AssertionError), self.assertNotUpdated("res_partner", ids=[p1.id, p2.id]): - p2.company_name = "Survey Corps" + p2.city = "Survey Corps" util.flush(p2) def test_assert_updated_combo(self): @@ -2415,7 +2415,7 @@ def test_assert_updated_combo(self): util.flush(p2) with self.assertUpdated("res_partner", ids=[p1.id]), self.assertNotUpdated("res_partner", ids=[p2.id]): - p1.company_name = "Marley Warriors" + p1.city = "Marley Warriors" util.flush(p1) with self.assertRaises(AssertionError), self.assertUpdated("res_partner"), self.assertNotUpdated(