# HG changeset patch # User Xavier ALT # Date 1299767792 -3600 # Node ID 044c1cd752d01ccb54b577e68c9813742fa06810 # Parent 63784a18adbc865e50e3f0a07e21c3949c612c53 [FIX] type break read for 'security by field' diff --git a/bin/osv/orm.py b/bin/osv/orm.py --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -3078,7 +3078,7 @@ 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: