[FIX] base : _get_group() method corrected

bzr revid: ach@tinyerp.com-20101005104759-2mdxxuu4emvwc785
This commit is contained in:
Anup (OpenERP) 2010-10-05 16:17:59 +05:30
parent 31680ea258
commit 55da21f5b6
1 changed files with 2 additions and 2 deletions

View File

@ -328,8 +328,8 @@ class users(osv.osv):
def _get_group(self,cr, uid, context=None):
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
dummy,group_id = dataobj.get_object_reference(cr, 1, 'base', 'group_user')
return [group_id] or False
_defaults = {
'password' : lambda *a : '',