From 3e6c62d4725f58fe7cb9385e7871569bf6079ead Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Mon, 10 Dec 2012 15:04:11 +0100 Subject: [PATCH] [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 --- addons/web/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/http.py b/addons/web/http.py index d0b04428f0d..3a3ce9aeed9 100644 --- a/addons/web/http.py +++ b/addons/web/http.py @@ -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')