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:
Xavier ALT 2011-03-11 10:27:20 +02:00 committed by P. Christeas
parent 144292e286
commit 3755c34404
1 changed files with 1 additions and 1 deletions

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: