Skip to content

Commit

Permalink
[FIX] tools/config: avoid sharing init/demo config
Browse files Browse the repository at this point in the history
Theses config options should not share the same dict as `init` dict
may be modified by migration scripts to handle new module dependencies.
  • Loading branch information
KangOl committed Oct 11, 2016
1 parent 789566a commit ecb6055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def die(cond, msg):
for x in self.options['addons_path'].split(','))

self.options['init'] = opt.init and dict.fromkeys(opt.init.split(','), 1) or {}
self.options["demo"] = not opt.without_demo and self.options['init'] or {}
self.options['demo'] = not opt.without_demo and dict(self.options['init']) or {}
self.options['update'] = opt.update and dict.fromkeys(opt.update.split(','), 1) or {}
self.options['translate_modules'] = opt.translate_modules and map(lambda m: m.strip(), opt.translate_modules.split(',')) or ['all']
self.options['translate_modules'].sort()
Expand Down

0 comments on commit ecb6055

Please sign in to comment.