diff options
Diffstat (limited to 'odoo/modules/db.py')
| -rw-r--r-- | odoo/modules/db.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/odoo/modules/db.py b/odoo/modules/db.py index f2592f947e2..7106ff82b69 100644 --- a/odoo/modules/db.py +++ b/odoo/modules/db.py @@ -12,8 +12,7 @@ def is_initialized(cr): The database can be initialized with the 'initialize' function below. """ - cr.execute("SELECT relname FROM pg_class WHERE relkind='r' AND relname='ir_module_module'") - return len(cr.fetchall()) > 0 + return odoo.tools.table_exists(cr, 'ir_module_module') def initialize(cr): """ Initialize a database with for the ORM. |
