From 7b440909814f57b5083c8ee8131263ef943bad03 Mon Sep 17 00:00:00 2001 From: ced <> Date: Fri, 29 Dec 2006 08:35:25 +0000 Subject: [PATCH] Remove config after graph creation (better place) bzr revid: ced-8c6aaa35c2565c6c22c513762370bc638aa27d64 --- bin/addons/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index fba500900ed..c33bee95c02 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -157,8 +157,6 @@ def create_graph(module_list, force=[]): for package in later: logger.notifyChannel('init', netsvc.LOG_ERROR, 'addon:%s:Unmet dependency' % package) - for kind in ('init', 'demo', 'update'): - tools.config[kind]={} return graph def init_module_objects(cr, module_name, obj_list): @@ -247,6 +245,9 @@ def load_modules(db, force_demo=False, status={}, update_module=False): graph = create_graph(module_list, force) load_module_graph(cr, graph, status) + for kind in ('init', 'demo', 'update'): + tools.config[kind]={} + cr.commit() if update_module: cr.execute("select id,name from ir_module_module where state in ('to remove')")