'res' should be global in load_modules

issue4045
This commit is contained in:
Cédric Krier committed 2014-07-20 12:39:15 +02:00
1 parent cc39b82917
commit ab820aecf5
1 file changed
+1
+1
View File
@@ -366,6 +366,7 @@ def load_modules(database_name, pool, update=False, lang=None):
res = True
def _load_modules():
global res
cursor = Transaction().cursor
if update:
# Migration from 2.2: workflow module removed