Skip to content

Commit dd603cc

Browse files
aj-fuentesyagp-odoo
authored andcommitted
[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
1 parent 98a959e commit dd603cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/base/tests/test_util.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,8 +2363,8 @@ def test_assert_updated(self):
23632363

23642364
# when ids has multiple records, all records should be updated
23652365
with self.assertUpdated("res_partner", ids=[p1.id, p2.id]):
2366-
p1.company_name = "Survey Corps"
2367-
p2.company_name = "Survey Corps"
2366+
p1.city = "Survey Corps"
2367+
p2.city = "Survey Corps"
23682368
util.flush(p1)
23692369
util.flush(p2)
23702370
with self.assertRaises(AssertionError), self.assertUpdated("res_partner", ids=[p1.id, p2.id]):
@@ -2400,12 +2400,12 @@ def test_assert_not_updated(self):
24002400

24012401
# when ids has a record, only that record should not be updated
24022402
with self.assertNotUpdated("res_partner", ids=[p2.id]):
2403-
p1.company_name = "Survey Corps"
2403+
p1.city = "Survey Corps"
24042404
util.flush(p1)
24052405

24062406
# when ids has multiple records, none of them should be updated
24072407
with self.assertRaises(AssertionError), self.assertNotUpdated("res_partner", ids=[p1.id, p2.id]):
2408-
p2.company_name = "Survey Corps"
2408+
p2.city = "Survey Corps"
24092409
util.flush(p2)
24102410

24112411
def test_assert_updated_combo(self):
@@ -2415,7 +2415,7 @@ def test_assert_updated_combo(self):
24152415
util.flush(p2)
24162416

24172417
with self.assertUpdated("res_partner", ids=[p1.id]), self.assertNotUpdated("res_partner", ids=[p2.id]):
2418-
p1.company_name = "Marley Warriors"
2418+
p1.city = "Marley Warriors"
24192419
util.flush(p1)
24202420

24212421
with self.assertRaises(AssertionError), self.assertUpdated("res_partner"), self.assertNotUpdated(

0 commit comments

Comments
 (0)