summaryrefslogtreecommitdiff
path: root/addons/document
diff options
context:
space:
mode:
authorSbh (Openerp) <sbh@tinyerp.com>2012-06-14 12:31:34 +0530
committerSbh (Openerp) <sbh@tinyerp.com>2012-06-14 12:31:34 +0530
commitac75daf8a5defcbd1ab7f071cacf7aecbd5f8ce0 (patch)
tree0b19e0cb649f922fa60a7063acc0ec193e71d21a /addons/document
parenta1d3ff929132b8f7ee3ad01785e46934b5ce56f5 (diff)
parent3611f431b93e4bed0bfb8d360dc19cb2aa52778b (diff)
[MERGE] Merge document chagnes
bzr revid: sbh@tinyerp.com-20120614070134-2to8qgr8cx1y2vux
Diffstat (limited to 'addons/document')
-rw-r--r--addons/document/document_directory.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/document/document_directory.py b/addons/document/document_directory.py
index d09d2cc86d5..9cc750b7c12 100644
--- a/addons/document/document_directory.py
+++ b/addons/document/document_directory.py
@@ -78,9 +78,8 @@ class document_directory(osv.osv):
root_id = objid.read(cr, uid, mid, ['res_id'])['res_id']
return root_id
except Exception, e:
- import netsvc
- logger = netsvc.Logger()
- logger.notifyChannel("document", netsvc.LOG_WARNING, 'Cannot set directory root:'+ str(e))
+ import logging
+ logging.getLogger('document').warning('Cannot set directory root:'+ str(e))
return False
return objid.browse(cr, uid, mid, context=context).res_id