[REM] orm: annoying INFO log lines

bzr revid: odo@openerp.com-20111004204800-f4470vy0ou3ugxnm
This commit is contained in:
Olivier Dony 2011-10-04 22:48:00 +02:00
parent 51b1201daa
commit edf68f510c
1 changed files with 0 additions and 2 deletions

View File

@ -2859,11 +2859,9 @@ class BaseModel(object):
def _auto_end(self, cr, context=None):
""" Create the foreign keys recorded by _auto_init. """
self.__logger.info('Establishing foreign key references...')
for t, k, r, d in self._foreign_keys:
cr.execute('ALTER TABLE "%s" ADD FOREIGN KEY ("%s") REFERENCES "%s" ON DELETE %s' % (t, k, r, d))
cr.commit()
self.__logger.info('Establishing foreign key references... done')
del self._foreign_keys