summaryrefslogtreecommitdiff
path: root/openerp/modules/loading.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-04-05 19:08:01 +0200
committerChristophe Simonis <chs@odoo.com>2016-04-05 19:08:01 +0200
commit549daaaba455f883aa480a88fbf5df884d5555d0 (patch)
treed739534c5fcfefbc21f3e814867549e5ccd18199 /openerp/modules/loading.py
parent3373af527c0ad8ca08a94f3fef398ab3ebace7da (diff)
parent3e639f4bea5563f9852fd2c1b2c00f24c6b32b10 (diff)
[MERGE] forward port of branch saas-7 up to 3e639f4
Diffstat (limited to 'openerp/modules/loading.py')
-rw-r--r--openerp/modules/loading.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/openerp/modules/loading.py b/openerp/modules/loading.py
index 40cd1bbfd59..421ca5cb6b6 100644
--- a/openerp/modules/loading.py
+++ b/openerp/modules/loading.py
@@ -416,7 +416,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)