From 649cf2e677736471ce45abbd20e1f9234051a9ca Mon Sep 17 00:00:00 2001 From: "olt@tinyerp.com" <> Date: Thu, 20 Sep 2012 16:55:19 +0200 Subject: [PATCH] [FIX] fixed message format (wrong number of arguments) bzr revid: olt@tinyerp.com-20120920145519-j842fb8woer25p8i --- openerp/osv/orm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openerp/osv/orm.py b/openerp/osv/orm.py index 3eafd247f59..f324ed67522 100644 --- a/openerp/osv/orm.py +++ b/openerp/osv/orm.py @@ -3045,11 +3045,11 @@ class BaseModel(object): cr.commit() if f._type == 'text': # FIXME: for fields.text columns we should try creating GIN indexes instead (seems most suitable for an ERP context) - msg = "Table '%s': Adding (b-tree) index for text column '%s'."\ + msg = "Table '%s': Adding (b-tree) index for %s column '%s'."\ "This is probably useless (does not work for fulltext search) and prevents INSERTs of long texts"\ " because there is a length limit for indexable btree values!\n"\ "Use a search view instead if you simply want to make the field searchable." - _schema.warning(msg, self._table, k, f._type) + _schema.warning(msg, self._table, f._type, k) if res2 and not f.select: cr.execute('DROP INDEX "%s_%s_index"' % (self._table, k)) cr.commit()