diff options
| author | DJ Patel <mdi@tinyerp.com> | 2014-04-17 12:15:01 +0530 |
|---|---|---|
| committer | DJ Patel <mdi@tinyerp.com> | 2014-04-17 12:15:01 +0530 |
| commit | 483fe85c2b3e659bfdb3d2e483e8bbaab3fcf4e4 (patch) | |
| tree | a7e46439e5cf609578130abe6a6d9c041734841d /addons/document/document.py | |
| parent | 7d5b66c526fc2137d1f65cb881ebe2409e2b2234 (diff) | |
| parent | dd47f684f0d0d5f8844d8893d3bbc9eee2a48c46 (diff) | |
[Merge] Merged with main branch.
bzr revid: mdi@tinyerp.com-20140417064501-cf2rp86sukob7v1a
Diffstat (limited to 'addons/document/document.py')
| -rw-r--r-- | addons/document/document.py | 4 |
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() |
