diff options
| author | Raphael Collet <rco@openerp.com> | 2014-04-09 09:09:22 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2014-04-09 09:09:22 +0200 |
| commit | 0d019b5d902a345a6adf036fd70c810039b66d1f (patch) | |
| tree | 020df10e7ae5cf5ee405be4cdfa5b328f7cecb47 /addons/document/document.py | |
| parent | 9c1debf7d9b29ce31f3a126961c47fde9763568d (diff) | |
[IMP] document, edi, procurement: use new method Registry.get_cursor()
bzr revid: rco@openerp.com-20140409070922-2lbc6b2llk46n8rg
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..85c6f71ec4d 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).get_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).get_cursor() try: if self.mode in ('w', 'w+', 'r+'): data = self.getvalue() |
