[IMP] web.http: _load_addons load the addons in a reproducible way.

I believe there are potential circular imports that can break
because of openerp.modules.module ImportHook, but they are
deifficult to reproduce when the import order is not always
the same.

bzr revid: vmt@openerp.com-20121210140411-ranw3jc3mwu3ymty
This commit is contained in:
Vo Minh Thu 2012-12-10 15:04:11 +01:00
parent 507c02aaa2
commit 3e6c62d472
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ class Root(object):
"""
statics = {}
for addons_path in openerp.modules.module.ad_paths:
for module in os.listdir(addons_path):
for module in sorted(os.listdir(addons_path)):
if module not in addons_module:
manifest_path = os.path.join(addons_path, module, '__openerp__.py')
path_static = os.path.join(addons_path, module, 'static')