Skip to content

Commit 89a9ec9

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 3fcc237 commit 89a9ec9

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
@@ -2617,8 +2617,8 @@ def test_assert_updated(self):
26172617

26182618
# when ids has multiple records, all records should be updated
26192619
with self.assertUpdated("res_partner", ids=[p1.id, p2.id]):
2620-
p1.company_name = "Survey Corps"
2621-
p2.company_name = "Survey Corps"
2620+
p1.city = "Survey Corps"
2621+
p2.city = "Survey Corps"
26222622
util.flush(p1)
26232623
util.flush(p2)
26242624
with self.assertRaises(AssertionError), self.assertUpdated("res_partner", ids=[p1.id, p2.id]):
@@ -2654,12 +2654,12 @@ def test_assert_not_updated(self):
26542654

26552655
# when ids has a record, only that record should not be updated
26562656
with self.assertNotUpdated("res_partner", ids=[p2.id]):
2657-
p1.company_name = "Survey Corps"
2657+
p1.city = "Survey Corps"
26582658
util.flush(p1)
26592659

26602660
# when ids has multiple records, none of them should be updated
26612661
with self.assertRaises(AssertionError), self.assertNotUpdated("res_partner", ids=[p1.id, p2.id]):
2662-
p2.company_name = "Survey Corps"
2662+
p2.city = "Survey Corps"
26632663
util.flush(p2)
26642664

26652665
def test_assert_updated_combo(self):
@@ -2669,7 +2669,7 @@ def test_assert_updated_combo(self):
26692669
util.flush(p2)
26702670

26712671
with self.assertUpdated("res_partner", ids=[p1.id]), self.assertNotUpdated("res_partner", ids=[p2.id]):
2672-
p1.company_name = "Marley Warriors"
2672+
p1.city = "Marley Warriors"
26732673
util.flush(p1)
26742674

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

0 commit comments

Comments
 (0)