summaryrefslogtreecommitdiff
path: root/odoo/modules/loading.py
diff options
context:
space:
mode:
authorDaniel Reis <dgreis@sapo.pt>2015-10-19 16:26:55 +0100
committerMartin Trigaux <mat@odoo.com>2017-09-26 13:32:53 +0200
commit53fe7ae4625f3c7b4b7210a904a7453b83ef7970 (patch)
tree373821d7d40b275450f854bb5abae0a283e5a7f8 /odoo/modules/loading.py
parent2447c94cd076083b1d3da195a41606dbfd225329 (diff)
[IMP] modules: on module update or init always update module list
Was only done when updating base. The cost of scanning the addons path should small in comparison to the update time itself. Followup of #9133 Closes #9140
Diffstat (limited to 'odoo/modules/loading.py')
-rw-r--r--odoo/modules/loading.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py
index a670f3706cb..ddabe6c188d 100644
--- a/odoo/modules/loading.py
+++ b/odoo/modules/loading.py
@@ -294,9 +294,8 @@ def load_modules(db, force_demo=False, status=None, update_module=False):
if update_module:
env = api.Environment(cr, SUPERUSER_ID, {})
Module = env['ir.module.module']
- if ('base' in tools.config['init']) or ('base' in tools.config['update']):
- _logger.info('updating modules list')
- Module.update_list()
+ _logger.info('updating modules list')
+ Module.update_list()
_check_module_names(cr, itertools.chain(tools.config['init'], tools.config['update']))