[Merge] Merged branch for the fix of lp:732613
bzr revid: jvo@tinyerp.com-20110311163943-cg6zhr9eobvsbh15
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user