odoo/openerp/addons/base/tests
Raphael Collet 6595cfdf0c [FIX] expression: avoid useless query when searching on x2many sub-field
Searching on a domain like `[('m2m.sub', operator, value)]` currently does
something like:

    right_ids = comodel.search([('sub', operator, value)]).ids
    table_ids = model.search([('m2m', 'in', right_ids)]).ids

and reduces the domain triple to `('id', 'in', table_ids)`.

The domain triple can actually be reduced to `('m2m', 'in', right_ids)`.  With
this reduction, the search on the field `m2m` will be done as part of the main
query.  And this will also enable the optimization of the former fix!
2017-04-06 16:46:46 +02:00
..
__init__.py [FIX] base: has_group behaviour under the new API 2016-02-02 18:28:23 +01:00
base_test.yml [IMP] use model._fields instead of model._all_columns to cover all fields 2014-11-04 13:47:57 +01:00
test_acl.py [FIX] tests: make self.assertRaises() return the expected object 2014-11-17 15:39:14 +01:00
test_api.py [FIX] api: improve decorator `returns` to handle special cases, like method `search` 2015-11-25 09:59:35 +01:00
test_base.py [FIX] mail: backport of rev 752a07c to 8.0 2015-07-07 08:52:44 +02:00
test_basecase.py move tests 2014-02-09 01:37:45 +01:00
test_db_cursor.py [FIX] tests: db name moved from constant to function 2015-06-12 12:43:01 +02:00
test_expression.py [FIX] expression: avoid useless query when searching on x2many sub-field 2017-04-06 16:46:46 +02:00
test_func.py [FIX] re-enable test func and qweb 2014-02-09 15:33:26 +01:00
test_ir_actions.py [FIX] actions: match the behavior of multi actions with its help text 2014-10-08 17:29:36 +02:00
test_ir_attachment.py [FIX] test ir_attachment: files are not directories 2014-01-16 23:42:07 +01:00
test_ir_filters.py [FIX] models: read_group on many2one fields 2015-10-16 12:11:31 +02:00
test_ir_rule.yml [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
test_ir_sequence.py [FIX] tests: db name moved from constant to function 2015-06-12 12:43:01 +02:00
test_ir_values.py [FIX] do not hardcode ids in tests 2012-12-05 18:37:33 +01:00
test_mail.py [FIX] tools: mail: fixed read more link tha could be placed in a block to be removed, being considered as a quote 2014-08-20 14:10:20 +02:00
test_mail_examples.py [FIX] tools: mail: fixed read more link tha could be placed in a block to be removed, being considered as a quote 2014-08-20 14:10:20 +02:00
test_menu.py [FIX] Remove unused imports and fix some imports that doesn't use the new namespace 2012-12-17 15:30:29 +01:00
test_misc.py move tests 2014-02-09 01:37:45 +01:00
test_orm.py [FIX] models: `MissingError` when writing on recordset with duplicates 2016-02-01 14:56:49 +01:00
test_osv.py move tests 2014-02-09 01:37:45 +01:00
test_osv_expression.yml [MERGE] Forward-port 7.0 up to 4de3f4c4ba 2016-02-05 15:42:12 +01:00
test_qweb.py [ADD] qweb: handling of t-att=mapping 2014-10-06 19:13:44 +02:00
test_res_config.py [FIX] res_config tests: isinstance(x, long) is False when x is an int! 2013-05-08 17:32:07 +02:00
test_res_lang.py [FIX] remove useless asserts text 2013-02-12 15:18:30 +01:00
test_search.py [IMP] base: tests, move patch_order to TransactionCase 2015-09-08 11:53:18 +02:00
test_translate.py move tests 2014-02-09 01:37:45 +01:00
test_uninstall.py [FIX] tests: db name moved from constant to function 2015-06-12 12:43:01 +02:00
test_user_has_group.py [FIX] base: has_group behaviour under the new API 2016-02-02 18:28:23 +01:00
test_view_validation.py move tests 2014-02-09 01:37:45 +01:00
test_views.py [FIX] base: check ir.ui.view recursion 2017-03-13 13:27:53 +01:00
test_xmlrpc.py [FIX] tests: db name moved from constant to function 2015-06-12 12:43:01 +02:00