[REF] base: Refactored Code

bzr revid: ach@tinyerp.com-20101011064948-ust4ovsiy9tyjs85
This commit is contained in:
Anup (OpenERP) 2010-10-11 12:19:48 +05:30
parent ce3a5813b9
commit 1cb3e4e099
1 changed files with 0 additions and 2 deletions

View File

@ -239,8 +239,6 @@ class ir_model_access(osv.osv):
grouparr = group.split('.')
if not grouparr:
return False
print grouparr
cr.execute("select 1 from res_groups_users_rel where uid=%s and gid IN (select res_id from ir_model_data where module=%s and name=%s)", (uid, grouparr[0], grouparr[1],))
return bool(cr.fetchone())