diff options
| author | vra <vra@tinyerp.com> | 2010-06-18 19:35:37 +0530 |
|---|---|---|
| committer | vra <vra@tinyerp.com> | 2010-06-18 19:35:37 +0530 |
| commit | 1cf10a7daaf5cd45e7c8638aa9fc78caf85a64e7 (patch) | |
| tree | 4490f3e96f883c34a9413278f3750582f26a44ba /bin/addons/__init__.py | |
| parent | e0d94956c1da3d5a64eb91b3a947bd5dde01c424 (diff) | |
[FIX][IMP] SQL-Injection ,minor improvement.
bzr revid: vra@tinyerp.com-20100618140537-mjbviu7sxxwn83x8
Diffstat (limited to 'bin/addons/__init__.py')
| -rw-r--r-- | bin/addons/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index f4bd7c1e1e3..a7557448ad2 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -840,7 +840,7 @@ def load_modules(db, force_demo=False, status=None, update_module=False): has_updates = has_updates or r if has_updates: - cr.execute("""select model,name from ir_model where id not in (select model_id from ir_model_access)""") + cr.execute("""select model,name from ir_model where id NOT IN (select model_id from ir_model_access)""") for (model, name) in cr.fetchall(): logger.notifyChannel('init', netsvc.LOG_WARNING, 'object %s (%s) has no access rules!' % (model, name)) |
