summaryrefslogtreecommitdiff
path: root/addons/document/document.py
diff options
context:
space:
mode:
authorAmit Vora <avo@tinyerp.com>2014-04-14 12:48:01 +0530
committerAmit Vora <avo@tinyerp.com>2014-04-14 12:48:01 +0530
commitbf3d4a7d943de6f0765533dae04de5046e0822fa (patch)
tree062f17846f931a3a19e8d02128eeb7c946dafe69 /addons/document/document.py
parentcfbd8ae9f80b32088171afe45844dcadb0c0f5a6 (diff)
parente82fbf7d911355c3a9acef38f83040761258dd5d (diff)
[MRG] merge with main branch
bzr revid: avo@tinyerp.com-20140414071801-3eaa6iqryfrolxbt
Diffstat (limited to 'addons/document/document.py')
-rw-r--r--addons/document/document.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/document/document.py b/addons/document/document.py
index eb51ad5ac57..9008f32cd20 100644
--- a/addons/document/document.py
+++ b/addons/document/document.py
@@ -2005,7 +2005,7 @@ class nodefd_content(StringIO, node_descriptor):
par = self._get_parent()
uid = par.context.uid
- cr = openerp.registry(par.context.dbname).db.cursor()
+ cr = openerp.registry(par.context.dbname).cursor()
try:
if self.mode in ('w', 'w+', 'r+'):
data = self.getvalue()
@@ -2058,7 +2058,7 @@ class nodefd_static(StringIO, node_descriptor):
par = self._get_parent()
# uid = par.context.uid
- cr = openerp.registry(par.context.dbname).db.cursor()
+ cr = openerp.registry(par.context.dbname).cursor()
try:
if self.mode in ('w', 'w+', 'r+'):
data = self.getvalue()