[Merge] Merged branch for the fix of lp:732613

bzr revid: jvo@tinyerp.com-20110311163943-cg6zhr9eobvsbh15
This commit is contained in:
Jay Vora (OpenERP)
2011-03-11 22:09:43 +05:30
+1 -1
View File
@@ -3078,7 +3078,7 @@ class orm(orm_template):
for group in groups:
module = group.split(".")[0]
grp = group.split(".")[1]
cr.execute("select count(*) from res_groups_users_rel where gid IN (select res_id from ir_model_data where name=%s and module=%s and model=%s) and uid=%s" \
cr.execute("select count(*) from res_groups_users_rel where gid IN (select res_id from ir_model_data where name=%s and module=%s and model=%s) and uid=%s", \
(grp, module, 'res.groups', user))
readonly = cr.fetchall()
if readonly[0][0] >= 1: