Browse Source

[IMP] review

pull/469/head
Holger Brunn 9 years ago
parent
commit
03dbdcfadf
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  1. 5
      database_cleanup/README.rst
  2. 5
      database_cleanup/models/purge_tables.py

5
database_cleanup/README.rst

@ -33,11 +33,6 @@ For further information, please visit:
* https://www.odoo.com/forum/help-1
Known issues / Roadmap
======================
* ...
Bug Tracker
===========

5
database_cleanup/models/purge_tables.py

@ -87,14 +87,11 @@ class CleanupPurgeWizardTable(models.TransientModel):
# type m2m don't have _rel
]
# Cannot pass table names as a psycopg argument
known_tables_repr = ",".join(
[("'%s'" % table) for table in known_tables])
self.env.cr.execute(
"""
SELECT table_name FROM information_schema.tables
WHERE table_schema = 'public' AND table_type = 'BASE TABLE'
AND table_name NOT IN (%s)""" % known_tables_repr)
AND table_name NOT IN %s""", (tuple(known_tables),))
res = [(0, 0, {'name': row[0]}) for row in self.env.cr.fetchall()]
if not res:

Loading…
Cancel
Save