diff --git a/odoo/addons/test_performance/tests/test_performance.py b/odoo/addons/test_performance/tests/test_performance.py index e880f8a3c75..1a34881707c 100644 --- a/odoo/addons/test_performance/tests/test_performance.py +++ b/odoo/addons/test_performance/tests/test_performance.py @@ -495,10 +495,10 @@ class TestIrPropertyOptimizations(TransactionCase): self.Bacon.create({'property_eggs': False}) # create with another value - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.with_context(default_property_eggs=eggs.id).create({}) - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.create({'property_eggs': eggs.id}) def test_with_truthy_default(self): @@ -524,16 +524,16 @@ class TestIrPropertyOptimizations(TransactionCase): eggs = self.Eggs.create({}) self.Bacon.create({'property_eggs': eggs.id}) - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.with_context(default_property_eggs=eggs.id).create({}) - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.create({'property_eggs': eggs.id}) - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.with_context(default_property_eggs=False).create({}) - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.create({'property_eggs': False})