diff options
| author | Raphael Collet <rco@odoo.com> | 2020-06-17 16:48:27 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-08-18 13:02:41 +0000 |
| commit | 69869ab681e2271ae802ca3ab7285ee83580208d (patch) | |
| tree | 341e265274c89177361498f411e20277f64a5b61 /addons/test_mass_mailing/tests/test_performance.py | |
| parent | 0f7f163d2e2bb9cc38f2b037dae6df2eae9466a4 (diff) | |
[IMP] core: introduce subqueries in search
Make the method `_search` return a `Query` object, and make that object
generate a subquery when used on the right-hand side of a condition.
closes odoo/odoo#52403
Related: odoo/enterprise#10945
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/test_mass_mailing/tests/test_performance.py')
| -rw-r--r-- | addons/test_mass_mailing/tests/test_performance.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/test_mass_mailing/tests/test_performance.py b/addons/test_mass_mailing/tests/test_performance.py index b6d784f1723..5ae91d52aa6 100644 --- a/addons/test_mass_mailing/tests/test_performance.py +++ b/addons/test_mass_mailing/tests/test_performance.py @@ -51,7 +51,7 @@ class TestMassMailPerformance(TestMassMailPerformanceBase): }) # runbot needs +50 compared to local - with self.assertQueryCount(__system__=1914, marketing=1915): + with self.assertQueryCount(__system__=1714, marketing=1715): mailing.action_send_mail() self.assertEqual(mailing.sent, 50) @@ -91,7 +91,7 @@ class TestMassMailBlPerformance(TestMassMailPerformanceBase): }) # runbot needs +62 compared to local - with self.assertQueryCount(__system__=2241, marketing=2242): + with self.assertQueryCount(__system__=1993, marketing=1994): mailing.action_send_mail() self.assertEqual(mailing.sent, 50) |
