Skip to content
Snippets Groups Projects
Commit 3c1c74df authored by Fabien Pinckaers's avatar Fabien Pinckaers
Browse files

fix

bzr revid: fp@tinyerp.com-20101004184630-x4k02bxow4weam3x
parent 24f82590
Branches
Tags
No related merge requests found
......@@ -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 : '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment