From 270bbb151b9213d0ef0a51b8a1f9555ff76a4032 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 27 Jan 2009 12:14:25 +0100 Subject: [PATCH] [IMP] change level of message when a column is not present in the object bzr revid: christophe@tinyerp.com-20090127111425-ktutr1iuvldwnaq0 --- bin/osv/orm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 4658d57b541..f0ee01fa204 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -1471,7 +1471,8 @@ class orm(orm_template): " AND a.attname NOT IN (%s)" % ",".join(['%s']*len(columns)), [self._table, False] + columns) for column in cr.dictfetchall(): - logger.notifyChannel("orm", netsvc.LOG_WARNING, "column %s is in the table %s but not in the corresponding object %s" % (column['attname'], self._table, self._name)) + # TODO display this information only when all modules are loaded + logger.notifyChannel("orm", netsvc.LOG_DEBUG, "column %s is in the table %s but not in the corresponding object %s" % (column['attname'], self._table, self._name)) if column['attnotnull']: cr.execute('ALTER TABLE "%s" ALTER COLUMN "%s" DROP NOT NULL' % (self._table, column['attname']))