[IMP] Use the logger

bzr revid: stephane@tinyerp.com-20081210214830-bzgox1uw469v6e5f
This commit is contained in:
Stephane Wirtel
2008-12-10 22:48:30 +01:00
parent 7d3ab11f97
commit a1d6019076
+2 -1
View File
@@ -25,6 +25,7 @@ from osv.orm import browse_null
import ir
import report.custom
from tools.translate import _
import netsvc
class report_custom(osv.osv):
_name = 'ir.report.custom'
@@ -187,7 +188,7 @@ class report_custom_fields(osv.osv):
}
}
else:
print _("Warning: using a relation field which uses an unknown object") #TODO use the logger
netsvc.Logger().notifyChannel('web-services', netsvc.LOG_WARNING, _("Using a relation field which uses an unknown object"))
return {'required': {next_level_field_name: True}}
else:
return {'domain': {next_level_field_name: []}}