Skip to content

Commit

Permalink
only run postinstall tests for updated modules
Browse files Browse the repository at this point in the history
closes odoo#9768
  • Loading branch information
gurneyalex committed Apr 4, 2016
1 parent 228494b commit 917cb5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openerp/modules/loading.py
Expand Up @@ -452,8 +452,8 @@ 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']:
if update_module and mods:
cr.execute("SELECT name FROM ir_module_module WHERE state='installed' and name in %s", (tuple(mods),))
if update_module:
cr.execute("SELECT name FROM ir_module_module WHERE state='installed' and name = ANY(%s)", (mods,))
else:
cr.execute("SELECT name FROM ir_module_module WHERE state='installed'")
for module_name in cr.fetchall():
Expand Down

0 comments on commit 917cb5e

Please sign in to comment.