From 56387832ec5eabfe86bd936c9bd71b3fdc7cb666 Mon Sep 17 00:00:00 2001 From: "John Laterre (jol)" Date: Thu, 20 Jan 2022 10:34:27 +0000 Subject: [PATCH] [FIX] sale_stock: fix perf tests Since this commit: d26b468 the number of queries executed when creating a sale order is counted. Because of the current change in the code, the numbers are no longer accurate. Hence this correction. Related PR : #75033 Part-of: odoo/odoo#81832 --- addons/sale_stock/tests/test_create_perf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sale_stock/tests/test_create_perf.py b/addons/sale_stock/tests/test_create_perf.py index 38e4f1f247b..654b19ab203 100644 --- a/addons/sale_stock/tests/test_create_perf.py +++ b/addons/sale_stock/tests/test_create_perf.py @@ -38,7 +38,7 @@ class TestPERF(common.TransactionCase): @users('admin') @warmup def test_empty_sale_order_creation_perf(self): - with self.assertQueryCount(admin=33): + with self.assertQueryCount(admin=34): self.env['sale.order'].create({ 'partner_id': self.partners[0].id, 'user_id': self.salesmans[0].id, @@ -87,7 +87,7 @@ class TestPERF(common.TransactionCase): @users('admin') @warmup def test_light_sales_orders_batch_creation_perf(self): - with self.assertQueryCount(admin=68): # 67 locally, 68 in nightly runbot + with self.assertQueryCount(admin=69): # 68 locally, 69 in nightly runbot self.env['sale.order'].create([{ 'partner_id': self.partners[0].id, 'user_id': self.salesmans[0].id,