fix command line installation

bzr revid: al@openerp.com-20120922111714-moxkguy729vout9x
This commit is contained in:
Antony Lesuisse 2012-09-22 13:17:14 +02:00
parent ac2ad9aa84
commit 2fdccd40c3
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ def setup_pid_file():
def preload_registry(dbname):
""" Preload a registry, and start the cron."""
try:
db, registry = openerp.pooler.get_db_and_pool(dbname, update_module=config['init'] or config['update'], pooljobs=False)
db, registry = openerp.pooler.get_db_and_pool(dbname, update_module=openerp.tools.config['init'] or openerp.tools.config['update'], pooljobs=False)
# jobs will start to be processed later, when openerp.cron.start_master_thread() is called by openerp.service.start_services()
registry.schedule_cron_jobs()