type break read for 'security by field'
Signed-off-by: P. Christeas <p_christ@hol.gr> (cherry picked from commit 92051d61345431173fc9eafc4dc015c0fb6002e8) bzr revid: p_christ@hol.gr-20110311082720-h30rd6iab9dihijk
This commit is contained in:
parent
144292e286
commit
3755c34404
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue