diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-04-05 19:27:34 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-04-05 19:27:34 +0200 |
| commit | aa6ebd146ad6ddaebb9ba7c5d93f2f87743dc248 (patch) | |
| tree | 223d12d01e74e0bf41eed57a80fc6bfaeea61cea /openerp/modules/loading.py | |
| parent | 7014579d2222c6b4fa694e57853fe3fedb9cc55b (diff) | |
| parent | 549daaaba455f883aa480a88fbf5df884d5555d0 (diff) | |
[MERGE] forward port of branch saas-9 up to 549daaa
Diffstat (limited to 'openerp/modules/loading.py')
| -rw-r--r-- | openerp/modules/loading.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openerp/modules/loading.py b/openerp/modules/loading.py index 0ccb599b226..017fd411ea1 100644 --- a/openerp/modules/loading.py +++ b/openerp/modules/loading.py @@ -418,7 +418,10 @@ def load_modules(db, force_demo=False, status=None, update_module=False): t0 = time.time() t0_sql = openerp.sql_db.sql_counter if openerp.tools.config['test_enable']: - cr.execute("SELECT name FROM ir_module_module WHERE state='installed'") + if update_module: + cr.execute("SELECT name FROM ir_module_module WHERE state='installed' and name = ANY(%s)", (processed_modules,)) + else: + cr.execute("SELECT name FROM ir_module_module WHERE state='installed'") for module_name in cr.fetchall(): report.record_result(openerp.modules.module.run_unit_tests(module_name[0], cr.dbname, position=runs_post_install)) _logger.log(25, "All post-tested in %.2fs, %s queries", time.time() - t0, openerp.sql_db.sql_counter - t0_sql) |
