[IMP] leave it to res.users' defaults to select menu item for new users
authorStefan Rijnhart <stefan@therp.nl>
Wed, 22 Jun 2011 11:55:33 +0000 (13:55 +0200)
committerStefan Rijnhart <stefan@therp.nl>
Wed, 22 Jun 2011 11:55:33 +0000 (13:55 +0200)
bzr revid: stefan@therp.nl-20110622115533-q9aryag887u245uc

addons/users_ldap/users_ldap.py

index 518dfe4..fb45df5 100644 (file)
@@ -121,10 +121,6 @@ class CompanyLDAP(osv.osv):
                    'login': login,
                    'company_id': conf['company']
                    }
-        if not conf['user']:
-            action_obj = self.pool.get('ir.actions.actions')
-            values['action_id'] = values['menu_id'] = action_obj.search(
-                cr, uid, [('usage', '=', 'menu')], order='id')[0]
         return values
     
     def get_or_create_user(self, cr, uid, login, conf, ldap_entry,