fix small problem in resolving groups attribute

bzr revid: mga@tinyerp.com-24a08b6462f0b703ea53d876a6a6ed08b580a15d
This commit is contained in:
Mantavya Gajjar 2008-03-28 12:57:25 +00:00
parent 287d230355
commit b59f7e3f93
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class ir_values(osv.osv):
res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
res2 = res[:]
for r in res:
if r[2].has_key('groups_id'):
if type(r) == type([]) and r[2].has_key('groups_id'):
groups = r[2]['groups_id']
if len(groups) > 0:
group_ids = ','.join([ str(x) for x in r[2]['groups_id']])