summaryrefslogtreecommitdiff
path: root/addons/document/document.py
diff options
context:
space:
mode:
authorchm@openerp.com <>2014-04-09 18:21:15 +0200
committerchm@openerp.com <>2014-04-09 18:21:15 +0200
commitcb9990f48213357d9af2f8928e2b253e312cb770 (patch)
treedc7b0fec1ea3b3eb164240218add2d01b8ff78f0 /addons/document/document.py
parent0e062e61b26d2cdbe9016400c968ba6502e6c081 (diff)
parent35d6a6f8a8bb4b116e03d5781c89379bfa02feb2 (diff)
[MERGE] from trunk
bzr revid: chm@openerp.com-20140409162115-pelt0qn3ocvzaup5
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()