[FIX] base_setup : the main application wizard must trigger chart of account wizardS

lp bug: https://launchpad.net/bugs/876260 fixed

bzr revid: mdi@tinyerp.com-20111024064714-9xhi75t8ciycs75a
This commit is contained in:
Divyesh Makwana (Open ERP) 2011-10-24 12:17:14 +05:30
parent b2a574b2ed
commit 2c9f642aac
1 changed files with 4 additions and 3 deletions

View File

@ -58,7 +58,7 @@ class base_setup_installer(osv.osv_memory):
if fields is None:
fields = {}
fields = {}
fields = {}
category_proxy = self.pool.get('ir.module.category')
domain = [('parent_id', '=', False),
('name', '!=', 'Uncategorized'),
@ -310,6 +310,7 @@ class base_setup_installer(osv.osv_memory):
if need_update:
cr.commit()
self.pool = pooler.restart_pool(cr.dbname, update_module=True)[1]
return self.pool.get('res.config').next(cr, uid, [], context=context)
if 'html' in context:
return {'type' : 'ir.actions.reload'}
@ -389,14 +390,14 @@ class user_preferences_config(osv.osv_memory):
('extended','Extended')],
'Interface', required=True, help= "If you use OpenERP for the first time we strongly advise you to select the simplified interface, which has less features but is easier. You can always switch later from the user preferences." ),
'menu_tips': fields.boolean('Display Tips', help="Check out this box if you want to always display tips on each menu action"),
}
_defaults={
'view' : lambda self,cr,uid,*args: self.pool.get('res.users').browse(cr, uid, uid).view or 'simple',
'context_lang' : 'en_US',
'menu_tips' : True
}
def default_get(self, cr, uid, fields, context=None):
if context is None:
context = {}