[FIX] addons.__init__: fixed mismatching logger API usage

bzr revid: odo@openerp.com-20101124163840-eyctlqtgjfq9h1u0
This commit is contained in:
Olivier Dony
2010-11-24 17:38:40 +01:00
parent af506691a3
commit 458d7c7dea
+1 -1
View File
@@ -874,7 +874,7 @@ def load_modules(db, force_demo=False, status=None, update_module=False):
if obj:
obj._check_removed_columns(cr, log=True)
else:
logger.warning("Model %s is referenced but not present in the orm pool!", model)
logger.notifyChannel('init', netsvc.LOG_WARNING, "Model %s is referenced but not present in the orm pool!" % model)
if report.get_report():
logger.notifyChannel('init', netsvc.LOG_INFO, report)