bzr revid: fp@tinyerp.com-20101004184630-x4k02bxow4weam3x
This commit is contained in:
Fabien Pinckaers 2010-10-04 20:46:30 +02:00
parent 24f82590fa
commit 3c1c74df2c
1 changed files with 3 additions and 2 deletions

View File

@ -327,8 +327,9 @@ class users(osv.osv):
return ids and ids[0] or False
def _get_group(self,cr, uid, context=None):
ids = self.pool.get('res.groups').search(cr, uid, [('name','=','Employee')], context=context)
return ids or False
dataobj = self.pool.get('ir.model.data')
data_id = dataobj._get_id(cr, 1, 'base', 'group_user')
return data_id and [data_id] or False
_defaults = {
'password' : lambda *a : '',