[FIX] account: avoid a crash if the user does not select an existing chart.

bzr revid: stw@openerp.com-20130417145829-0juk1t6ikbcts7v8
This commit is contained in:
Stephane Wirtel 2013-04-17 16:58:29 +02:00
parent 51d5126fee
commit 600513f09f
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class account_installer(osv.osv_memory):
chart = self.read(cr, uid, ids, ['charts'],
context=context)[0]['charts']
_logger.debug('Installing chart of accounts %s', chart)
return (modules | set([chart])) - set(['has_default_company'])
return (modules | set([chart])) - set(['has_default_company', 'configurable'])
account_installer()